diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Asset.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Asset.java index 0a368c4ef733..36fdef410f9a 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Asset.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Asset.java @@ -81,7 +81,7 @@ private Asset( } case 58: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { resourceProperties_ = com.google.protobuf.MapField.newMapField( ResourcePropertiesDefaultEntryHolder.defaultEntry); @@ -162,7 +162,7 @@ private Asset( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -432,7 +432,7 @@ private SecurityCenterProperties( case 42: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { resourceOwners_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000010; } @@ -441,7 +441,7 @@ private SecurityCenterProperties( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -453,7 +453,7 @@ private SecurityCenterProperties( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + if (((mutable_bitField0_ & 0x00000010) != 0)) { resourceOwners_ = resourceOwners_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); @@ -788,14 +788,13 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties other = (com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties) obj; - boolean result = true; - result = result && getResourceName().equals(other.getResourceName()); - result = result && getResourceType().equals(other.getResourceType()); - result = result && getResourceParent().equals(other.getResourceParent()); - result = result && getResourceProject().equals(other.getResourceProject()); - result = result && getResourceOwnersList().equals(other.getResourceOwnersList()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getResourceName().equals(other.getResourceName())) return false; + if (!getResourceType().equals(other.getResourceType())) return false; + if (!getResourceParent().equals(other.getResourceParent())) return false; + if (!getResourceProject().equals(other.getResourceProject())) return false; + if (!getResourceOwnersList().equals(other.getResourceOwnersList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -1013,7 +1012,7 @@ public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties buildPa result.resourceType_ = resourceType_; result.resourceParent_ = resourceParent_; result.resourceProject_ = resourceProject_; - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { resourceOwners_ = resourceOwners_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000010); } @@ -1025,23 +1024,23 @@ public com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties buildPa @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override @@ -1049,13 +1048,13 @@ public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -1548,7 +1547,7 @@ public Builder setResourceProjectBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureResourceOwnersIsMutable() { - if (!((bitField0_ & 0x00000010) == 0x00000010)) { + if (!((bitField0_ & 0x00000010) != 0)) { resourceOwners_ = new com.google.protobuf.LazyStringArrayList(resourceOwners_); bitField0_ |= 0x00000010; } @@ -1690,7 +1689,7 @@ public Builder addResourceOwnersBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override @@ -1830,7 +1829,7 @@ private IamPolicy( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -1954,10 +1953,9 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1.Asset.IamPolicy other = (com.google.cloud.securitycenter.v1.Asset.IamPolicy) obj; - boolean result = true; - result = result && getPolicyBlob().equals(other.getPolicyBlob()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getPolicyBlob().equals(other.getPolicyBlob())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -2154,23 +2152,23 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicy buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override @@ -2178,13 +2176,13 @@ public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -2341,7 +2339,7 @@ public Builder setPolicyBlobBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override @@ -2862,32 +2860,31 @@ public boolean equals(final java.lang.Object obj) { } com.google.cloud.securitycenter.v1.Asset other = (com.google.cloud.securitycenter.v1.Asset) obj; - boolean result = true; - result = result && getName().equals(other.getName()); - result = result && (hasSecurityCenterProperties() == other.hasSecurityCenterProperties()); + if (!getName().equals(other.getName())) return false; + if (hasSecurityCenterProperties() != other.hasSecurityCenterProperties()) return false; if (hasSecurityCenterProperties()) { - result = result && getSecurityCenterProperties().equals(other.getSecurityCenterProperties()); + if (!getSecurityCenterProperties().equals(other.getSecurityCenterProperties())) return false; } - result = - result && internalGetResourceProperties().equals(other.internalGetResourceProperties()); - result = result && (hasSecurityMarks() == other.hasSecurityMarks()); + if (!internalGetResourceProperties().equals(other.internalGetResourceProperties())) + return false; + if (hasSecurityMarks() != other.hasSecurityMarks()) return false; if (hasSecurityMarks()) { - result = result && getSecurityMarks().equals(other.getSecurityMarks()); + if (!getSecurityMarks().equals(other.getSecurityMarks())) return false; } - result = result && (hasCreateTime() == other.hasCreateTime()); + if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - result = result && getCreateTime().equals(other.getCreateTime()); + if (!getCreateTime().equals(other.getCreateTime())) return false; } - result = result && (hasUpdateTime() == other.hasUpdateTime()); + if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - result = result && getUpdateTime().equals(other.getUpdateTime()); + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } - result = result && (hasIamPolicy() == other.hasIamPolicy()); + if (hasIamPolicy() != other.hasIamPolicy()) return false; if (hasIamPolicy()) { - result = result && getIamPolicy().equals(other.getIamPolicy()); + if (!getIamPolicy().equals(other.getIamPolicy())) return false; } - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -3189,35 +3186,35 @@ public com.google.cloud.securitycenter.v1.Asset buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -3393,7 +3390,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties - securityCenterProperties_ = null; + securityCenterProperties_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties, com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties.Builder, @@ -3776,7 +3773,7 @@ public Builder putAllResourceProperties( return this; } - private com.google.cloud.securitycenter.v1.SecurityMarks securityMarks_ = null; + private com.google.cloud.securitycenter.v1.SecurityMarks securityMarks_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.SecurityMarks, com.google.cloud.securitycenter.v1.SecurityMarks.Builder, @@ -3967,7 +3964,7 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark return securityMarksBuilder_; } - private com.google.protobuf.Timestamp createTime_ = null; + private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, @@ -4146,7 +4143,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTimeBuilder_; } - private com.google.protobuf.Timestamp updateTime_ = null; + private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, @@ -4334,7 +4331,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTimeBuilder_; } - private com.google.cloud.securitycenter.v1.Asset.IamPolicy iamPolicy_ = null; + private com.google.cloud.securitycenter.v1.Asset.IamPolicy iamPolicy_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.Asset.IamPolicy, com.google.cloud.securitycenter.v1.Asset.IamPolicy.Builder, @@ -4536,7 +4533,7 @@ public com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder getIamPolicyO @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequest.java index deb201c8131f..ddaa06860ae1 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateFindingRequest.java @@ -83,7 +83,7 @@ private CreateFindingRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -308,15 +308,14 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1.CreateFindingRequest other = (com.google.cloud.securitycenter.v1.CreateFindingRequest) obj; - boolean result = true; - result = result && getParent().equals(other.getParent()); - result = result && getFindingId().equals(other.getFindingId()); - result = result && (hasFinding() == other.hasFinding()); + if (!getParent().equals(other.getParent())) return false; + if (!getFindingId().equals(other.getFindingId())) return false; + if (hasFinding() != other.hasFinding()) return false; if (hasFinding()) { - result = result && getFinding().equals(other.getFinding()); + if (!getFinding().equals(other.getFinding())) return false; } - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -530,35 +529,35 @@ public com.google.cloud.securitycenter.v1.CreateFindingRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -818,7 +817,7 @@ public Builder setFindingIdBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.cloud.securitycenter.v1.Finding finding_ = null; + private com.google.cloud.securitycenter.v1.Finding finding_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.Finding, com.google.cloud.securitycenter.v1.Finding.Builder, @@ -1010,7 +1009,7 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java index a16d5f6679f9..7836de8e918b 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/CreateSourceRequest.java @@ -75,7 +75,7 @@ private CreateSourceRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -247,14 +247,13 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1.CreateSourceRequest other = (com.google.cloud.securitycenter.v1.CreateSourceRequest) obj; - boolean result = true; - result = result && getParent().equals(other.getParent()); - result = result && (hasSource() == other.hasSource()); + if (!getParent().equals(other.getParent())) return false; + if (hasSource() != other.hasSource()) return false; if (hasSource()) { - result = result && getSource().equals(other.getSource()); + if (!getSource().equals(other.getSource())) return false; } - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -463,35 +462,35 @@ public com.google.cloud.securitycenter.v1.CreateSourceRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -643,7 +642,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.cloud.securitycenter.v1.Source source_ = null; + private com.google.cloud.securitycenter.v1.Source source_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.Source, com.google.cloud.securitycenter.v1.Source.Builder, @@ -835,7 +834,7 @@ public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java index 5a46dc0570b1..236263e269c6 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java @@ -103,7 +103,7 @@ private Finding( } case 58: { - if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + if (!((mutable_bitField0_ & 0x00000040) != 0)) { sourceProperties_ = com.google.protobuf.MapField.newMapField( SourcePropertiesDefaultEntryHolder.defaultEntry); @@ -167,7 +167,7 @@ private Finding( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -980,28 +980,27 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1.Finding other = (com.google.cloud.securitycenter.v1.Finding) obj; - boolean result = true; - result = result && getName().equals(other.getName()); - result = result && getParent().equals(other.getParent()); - result = result && getResourceName().equals(other.getResourceName()); - result = result && state_ == other.state_; - result = result && getCategory().equals(other.getCategory()); - result = result && getExternalUri().equals(other.getExternalUri()); - result = result && internalGetSourceProperties().equals(other.internalGetSourceProperties()); - result = result && (hasSecurityMarks() == other.hasSecurityMarks()); + if (!getName().equals(other.getName())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getResourceName().equals(other.getResourceName())) return false; + if (state_ != other.state_) return false; + if (!getCategory().equals(other.getCategory())) return false; + if (!getExternalUri().equals(other.getExternalUri())) return false; + if (!internalGetSourceProperties().equals(other.internalGetSourceProperties())) return false; + if (hasSecurityMarks() != other.hasSecurityMarks()) return false; if (hasSecurityMarks()) { - result = result && getSecurityMarks().equals(other.getSecurityMarks()); + if (!getSecurityMarks().equals(other.getSecurityMarks())) return false; } - result = result && (hasEventTime() == other.hasEventTime()); + if (hasEventTime() != other.hasEventTime()) return false; if (hasEventTime()) { - result = result && getEventTime().equals(other.getEventTime()); + if (!getEventTime().equals(other.getEventTime())) return false; } - result = result && (hasCreateTime() == other.hasCreateTime()); + if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - result = result && getCreateTime().equals(other.getCreateTime()); + if (!getCreateTime().equals(other.getCreateTime())) return false; } - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -1298,35 +1297,35 @@ public com.google.cloud.securitycenter.v1.Finding buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -2204,7 +2203,7 @@ public Builder putAllSourceProperties( return this; } - private com.google.cloud.securitycenter.v1.SecurityMarks securityMarks_ = null; + private com.google.cloud.securitycenter.v1.SecurityMarks securityMarks_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.SecurityMarks, com.google.cloud.securitycenter.v1.SecurityMarks.Builder, @@ -2404,7 +2403,7 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark return securityMarksBuilder_; } - private com.google.protobuf.Timestamp eventTime_ = null; + private com.google.protobuf.Timestamp eventTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, @@ -2597,7 +2596,7 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { return eventTimeBuilder_; } - private com.google.protobuf.Timestamp createTime_ = null; + private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, @@ -2778,7 +2777,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequest.java index b424576af0fe..7229c9885f11 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetOrganizationSettingsRequest.java @@ -60,7 +60,7 @@ private GetOrganizationSettingsRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -182,10 +182,9 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest other = (com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest) obj; - boolean result = true; - result = result && getName().equals(other.getName()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -382,35 +381,35 @@ public com.google.cloud.securitycenter.v1.GetOrganizationSettingsRequest buildPa @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -564,7 +563,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequest.java index 917d5477ce60..48b9b4e04ebb 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GetSourceRequest.java @@ -59,7 +59,7 @@ private GetSourceRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -181,10 +181,9 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1.GetSourceRequest other = (com.google.cloud.securitycenter.v1.GetSourceRequest) obj; - boolean result = true; - result = result && getName().equals(other.getName()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -377,35 +376,35 @@ public com.google.cloud.securitycenter.v1.GetSourceRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -556,7 +555,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java index 60b5924dcccd..b9eb26f6a4d6 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java @@ -27,7 +27,6 @@ private GroupAssetsRequest() { filter_ = ""; groupBy_ = ""; pageToken_ = ""; - pageSize_ = 0; } @java.lang.Override @@ -119,7 +118,7 @@ private GroupAssetsRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -634,22 +633,21 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1.GroupAssetsRequest other = (com.google.cloud.securitycenter.v1.GroupAssetsRequest) obj; - boolean result = true; - result = result && getParent().equals(other.getParent()); - result = result && getFilter().equals(other.getFilter()); - result = result && getGroupBy().equals(other.getGroupBy()); - result = result && (hasCompareDuration() == other.hasCompareDuration()); + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getGroupBy().equals(other.getGroupBy())) return false; + if (hasCompareDuration() != other.hasCompareDuration()) return false; if (hasCompareDuration()) { - result = result && getCompareDuration().equals(other.getCompareDuration()); + if (!getCompareDuration().equals(other.getCompareDuration())) return false; } - result = result && (hasReadTime() == other.hasReadTime()); + if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - result = result && getReadTime().equals(other.getReadTime()); + if (!getReadTime().equals(other.getReadTime())) return false; } - result = result && getPageToken().equals(other.getPageToken()); - result = result && (getPageSize() == other.getPageSize()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -893,35 +891,35 @@ public com.google.cloud.securitycenter.v1.GroupAssetsRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -1419,7 +1417,7 @@ public Builder setGroupByBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.Duration compareDuration_ = null; + private com.google.protobuf.Duration compareDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, @@ -1789,7 +1787,7 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { return compareDurationBuilder_; } - private com.google.protobuf.Timestamp readTime_ = null; + private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, @@ -2144,7 +2142,7 @@ public Builder clearPageSize() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java index f73e8559a7c0..6d06db39b3fe 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsResponse.java @@ -25,7 +25,6 @@ private GroupAssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder bu private GroupAssetsResponse() { groupByResults_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - totalSize_ = 0; } @java.lang.Override @@ -54,7 +53,7 @@ private GroupAssetsResponse( break; case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { groupByResults_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; @@ -93,7 +92,7 @@ private GroupAssetsResponse( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -105,7 +104,7 @@ private GroupAssetsResponse( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { groupByResults_ = java.util.Collections.unmodifiableList(groupByResults_); } this.unknownFields = unknownFields.build(); @@ -366,16 +365,15 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1.GroupAssetsResponse other = (com.google.cloud.securitycenter.v1.GroupAssetsResponse) obj; - boolean result = true; - result = result && getGroupByResultsList().equals(other.getGroupByResultsList()); - result = result && (hasReadTime() == other.hasReadTime()); + if (!getGroupByResultsList().equals(other.getGroupByResultsList())) return false; + if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - result = result && getReadTime().equals(other.getReadTime()); + if (!getReadTime().equals(other.getReadTime())) return false; } - result = result && getNextPageToken().equals(other.getNextPageToken()); - result = result && (getTotalSize() == other.getTotalSize()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -591,7 +589,7 @@ public com.google.cloud.securitycenter.v1.GroupAssetsResponse buildPartial() { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (groupByResultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { groupByResults_ = java.util.Collections.unmodifiableList(groupByResults_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -613,35 +611,35 @@ public com.google.cloud.securitycenter.v1.GroupAssetsResponse buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -730,7 +728,7 @@ public Builder mergeFrom( java.util.Collections.emptyList(); private void ensureGroupByResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { groupByResults_ = new java.util.ArrayList( groupByResults_); @@ -1114,7 +1112,7 @@ public com.google.cloud.securitycenter.v1.GroupResult.Builder addGroupByResultsB com.google.cloud.securitycenter.v1.GroupResult.Builder, com.google.cloud.securitycenter.v1.GroupResultOrBuilder>( groupByResults_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); groupByResults_ = null; @@ -1122,7 +1120,7 @@ public com.google.cloud.securitycenter.v1.GroupResult.Builder addGroupByResultsB return groupByResultsBuilder_; } - private com.google.protobuf.Timestamp readTime_ = null; + private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, @@ -1442,7 +1440,7 @@ public Builder clearTotalSize() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java index fcc33bbfdae6..ab565223fcac 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsRequest.java @@ -27,7 +27,6 @@ private GroupFindingsRequest() { filter_ = ""; groupBy_ = ""; pageToken_ = ""; - pageSize_ = 0; } @java.lang.Override @@ -119,7 +118,7 @@ private GroupFindingsRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -629,22 +628,21 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1.GroupFindingsRequest other = (com.google.cloud.securitycenter.v1.GroupFindingsRequest) obj; - boolean result = true; - result = result && getParent().equals(other.getParent()); - result = result && getFilter().equals(other.getFilter()); - result = result && getGroupBy().equals(other.getGroupBy()); - result = result && (hasReadTime() == other.hasReadTime()); + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getGroupBy().equals(other.getGroupBy())) return false; + if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - result = result && getReadTime().equals(other.getReadTime()); + if (!getReadTime().equals(other.getReadTime())) return false; } - result = result && (hasCompareDuration() == other.hasCompareDuration()); + if (hasCompareDuration() != other.hasCompareDuration()) return false; if (hasCompareDuration()) { - result = result && getCompareDuration().equals(other.getCompareDuration()); + if (!getCompareDuration().equals(other.getCompareDuration())) return false; } - result = result && getPageToken().equals(other.getPageToken()); - result = result && (getPageSize() == other.getPageSize()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -888,35 +886,35 @@ public com.google.cloud.securitycenter.v1.GroupFindingsRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -1409,7 +1407,7 @@ public Builder setGroupByBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.Timestamp readTime_ = null; + private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, @@ -1611,7 +1609,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { return readTimeBuilder_; } - private com.google.protobuf.Duration compareDuration_ = null; + private com.google.protobuf.Duration compareDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, @@ -2125,7 +2123,7 @@ public Builder clearPageSize() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java index 1d75196fe8a2..05b29eca9b32 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupFindingsResponse.java @@ -25,7 +25,6 @@ private GroupFindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder private GroupFindingsResponse() { groupByResults_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - totalSize_ = 0; } @java.lang.Override @@ -54,7 +53,7 @@ private GroupFindingsResponse( break; case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { groupByResults_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; @@ -93,7 +92,7 @@ private GroupFindingsResponse( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -105,7 +104,7 @@ private GroupFindingsResponse( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { groupByResults_ = java.util.Collections.unmodifiableList(groupByResults_); } this.unknownFields = unknownFields.build(); @@ -366,16 +365,15 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1.GroupFindingsResponse other = (com.google.cloud.securitycenter.v1.GroupFindingsResponse) obj; - boolean result = true; - result = result && getGroupByResultsList().equals(other.getGroupByResultsList()); - result = result && (hasReadTime() == other.hasReadTime()); + if (!getGroupByResultsList().equals(other.getGroupByResultsList())) return false; + if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - result = result && getReadTime().equals(other.getReadTime()); + if (!getReadTime().equals(other.getReadTime())) return false; } - result = result && getNextPageToken().equals(other.getNextPageToken()); - result = result && (getTotalSize() == other.getTotalSize()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -591,7 +589,7 @@ public com.google.cloud.securitycenter.v1.GroupFindingsResponse buildPartial() { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (groupByResultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { groupByResults_ = java.util.Collections.unmodifiableList(groupByResults_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -613,35 +611,35 @@ public com.google.cloud.securitycenter.v1.GroupFindingsResponse buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -730,7 +728,7 @@ public Builder mergeFrom( java.util.Collections.emptyList(); private void ensureGroupByResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { groupByResults_ = new java.util.ArrayList( groupByResults_); @@ -1114,7 +1112,7 @@ public com.google.cloud.securitycenter.v1.GroupResult.Builder addGroupByResultsB com.google.cloud.securitycenter.v1.GroupResult.Builder, com.google.cloud.securitycenter.v1.GroupResultOrBuilder>( groupByResults_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); groupByResults_ = null; @@ -1122,7 +1120,7 @@ public com.google.cloud.securitycenter.v1.GroupResult.Builder addGroupByResultsB return groupByResultsBuilder_; } - private com.google.protobuf.Timestamp readTime_ = null; + private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, @@ -1442,7 +1440,7 @@ public Builder clearTotalSize() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java index 10bb48d35108..7333832242c6 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupResult.java @@ -22,9 +22,7 @@ private GroupResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GroupResult() { - count_ = 0L; - } + private GroupResult() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { @@ -52,7 +50,7 @@ private GroupResult( break; case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { properties_ = com.google.protobuf.MapField.newMapField( PropertiesDefaultEntryHolder.defaultEntry); @@ -73,7 +71,7 @@ private GroupResult( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -288,11 +286,10 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1.GroupResult other = (com.google.cloud.securitycenter.v1.GroupResult) obj; - boolean result = true; - result = result && internalGetProperties().equals(other.internalGetProperties()); - result = result && (getCount() == other.getCount()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!internalGetProperties().equals(other.internalGetProperties())) return false; + if (getCount() != other.getCount()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -515,35 +512,35 @@ public com.google.cloud.securitycenter.v1.GroupResult buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -797,7 +794,7 @@ public Builder clearCount() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java index 4dd033794a61..bcc85af283ce 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsRequest.java @@ -27,7 +27,6 @@ private ListAssetsRequest() { filter_ = ""; orderBy_ = ""; pageToken_ = ""; - pageSize_ = 0; } @java.lang.Override @@ -134,7 +133,7 @@ private ListAssetsRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -693,26 +692,25 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1.ListAssetsRequest other = (com.google.cloud.securitycenter.v1.ListAssetsRequest) obj; - boolean result = true; - result = result && getParent().equals(other.getParent()); - result = result && getFilter().equals(other.getFilter()); - result = result && getOrderBy().equals(other.getOrderBy()); - result = result && (hasReadTime() == other.hasReadTime()); + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - result = result && getReadTime().equals(other.getReadTime()); + if (!getReadTime().equals(other.getReadTime())) return false; } - result = result && (hasCompareDuration() == other.hasCompareDuration()); + if (hasCompareDuration() != other.hasCompareDuration()) return false; if (hasCompareDuration()) { - result = result && getCompareDuration().equals(other.getCompareDuration()); + if (!getCompareDuration().equals(other.getCompareDuration())) return false; } - result = result && (hasFieldMask() == other.hasFieldMask()); + if (hasFieldMask() != other.hasFieldMask()) return false; if (hasFieldMask()) { - result = result && getFieldMask().equals(other.getFieldMask()); + if (!getFieldMask().equals(other.getFieldMask())) return false; } - result = result && getPageToken().equals(other.getPageToken()); - result = result && (getPageSize() == other.getPageSize()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -970,35 +968,35 @@ public com.google.cloud.securitycenter.v1.ListAssetsRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -1489,7 +1487,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.Timestamp readTime_ = null; + private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, @@ -1691,7 +1689,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { return readTimeBuilder_; } - private com.google.protobuf.Duration compareDuration_ = null; + private com.google.protobuf.Duration compareDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, @@ -2043,7 +2041,7 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { return compareDurationBuilder_; } - private com.google.protobuf.FieldMask fieldMask_ = null; + private com.google.protobuf.FieldMask fieldMask_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, @@ -2398,7 +2396,7 @@ public Builder clearPageSize() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java index 0522e4f487f6..47ad33967459 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListAssetsResponse.java @@ -25,7 +25,6 @@ private ListAssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder bui private ListAssetsResponse() { listAssetsResults_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - totalSize_ = 0; } @java.lang.Override @@ -54,7 +53,7 @@ private ListAssetsResponse( break; case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { listAssetsResults_ = new java.util.ArrayList< com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult>(); @@ -96,7 +95,7 @@ private ListAssetsResponse( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -108,7 +107,7 @@ private ListAssetsResponse( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { listAssetsResults_ = java.util.Collections.unmodifiableList(listAssetsResults_); } this.unknownFields = unknownFields.build(); @@ -265,7 +264,7 @@ private ListAssetsResult( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -610,14 +609,13 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult other = (com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult) obj; - boolean result = true; - result = result && (hasAsset() == other.hasAsset()); + if (hasAsset() != other.hasAsset()) return false; if (hasAsset()) { - result = result && getAsset().equals(other.getAsset()); + if (!getAsset().equals(other.getAsset())) return false; } - result = result && stateChange_ == other.stateChange_; - result = result && unknownFields.equals(other.unknownFields); - return result; + if (stateChange_ != other.stateChange_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -834,23 +832,23 @@ public com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult bu @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override @@ -858,13 +856,13 @@ public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -921,7 +919,7 @@ public Builder mergeFrom( return this; } - private com.google.cloud.securitycenter.v1.Asset asset_ = null; + private com.google.cloud.securitycenter.v1.Asset asset_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.Asset, com.google.cloud.securitycenter.v1.Asset.Builder, @@ -1198,7 +1196,7 @@ public Builder clearStateChange() { @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override @@ -1494,16 +1492,15 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1.ListAssetsResponse other = (com.google.cloud.securitycenter.v1.ListAssetsResponse) obj; - boolean result = true; - result = result && getListAssetsResultsList().equals(other.getListAssetsResultsList()); - result = result && (hasReadTime() == other.hasReadTime()); + if (!getListAssetsResultsList().equals(other.getListAssetsResultsList())) return false; + if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - result = result && getReadTime().equals(other.getReadTime()); + if (!getReadTime().equals(other.getReadTime())) return false; } - result = result && getNextPageToken().equals(other.getNextPageToken()); - result = result && (getTotalSize() == other.getTotalSize()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -1719,7 +1716,7 @@ public com.google.cloud.securitycenter.v1.ListAssetsResponse buildPartial() { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (listAssetsResultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { listAssetsResults_ = java.util.Collections.unmodifiableList(listAssetsResults_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -1741,35 +1738,35 @@ public com.google.cloud.securitycenter.v1.ListAssetsResponse buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -1858,7 +1855,7 @@ public Builder mergeFrom( listAssetsResults_ = java.util.Collections.emptyList(); private void ensureListAssetsResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { listAssetsResults_ = new java.util.ArrayList< com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult>( @@ -2262,7 +2259,7 @@ public Builder removeListAssetsResults(int index) { com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResult.Builder, com.google.cloud.securitycenter.v1.ListAssetsResponse.ListAssetsResultOrBuilder>( listAssetsResults_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); listAssetsResults_ = null; @@ -2270,7 +2267,7 @@ public Builder removeListAssetsResults(int index) { return listAssetsResultsBuilder_; } - private com.google.protobuf.Timestamp readTime_ = null; + private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, @@ -2590,7 +2587,7 @@ public Builder clearTotalSize() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java index b061bedc7738..f40f7a97de05 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsRequest.java @@ -27,7 +27,6 @@ private ListFindingsRequest() { filter_ = ""; orderBy_ = ""; pageToken_ = ""; - pageSize_ = 0; } @java.lang.Override @@ -134,7 +133,7 @@ private ListFindingsRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -690,26 +689,25 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1.ListFindingsRequest other = (com.google.cloud.securitycenter.v1.ListFindingsRequest) obj; - boolean result = true; - result = result && getParent().equals(other.getParent()); - result = result && getFilter().equals(other.getFilter()); - result = result && getOrderBy().equals(other.getOrderBy()); - result = result && (hasReadTime() == other.hasReadTime()); + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - result = result && getReadTime().equals(other.getReadTime()); + if (!getReadTime().equals(other.getReadTime())) return false; } - result = result && (hasCompareDuration() == other.hasCompareDuration()); + if (hasCompareDuration() != other.hasCompareDuration()) return false; if (hasCompareDuration()) { - result = result && getCompareDuration().equals(other.getCompareDuration()); + if (!getCompareDuration().equals(other.getCompareDuration())) return false; } - result = result && (hasFieldMask() == other.hasFieldMask()); + if (hasFieldMask() != other.hasFieldMask()) return false; if (hasFieldMask()) { - result = result && getFieldMask().equals(other.getFieldMask()); + if (!getFieldMask().equals(other.getFieldMask())) return false; } - result = result && getPageToken().equals(other.getPageToken()); - result = result && (getPageSize() == other.getPageSize()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -968,35 +966,35 @@ public com.google.cloud.securitycenter.v1.ListFindingsRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -1487,7 +1485,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.Timestamp readTime_ = null; + private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, @@ -1689,7 +1687,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { return readTimeBuilder_; } - private com.google.protobuf.Duration compareDuration_ = null; + private com.google.protobuf.Duration compareDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, @@ -2041,7 +2039,7 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { return compareDurationBuilder_; } - private com.google.protobuf.FieldMask fieldMask_ = null; + private com.google.protobuf.FieldMask fieldMask_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, @@ -2387,7 +2385,7 @@ public Builder clearPageSize() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java index 9d5653cd55b3..6490ab5d899f 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListFindingsResponse.java @@ -25,7 +25,6 @@ private ListFindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder b private ListFindingsResponse() { listFindingsResults_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - totalSize_ = 0; } @java.lang.Override @@ -54,7 +53,7 @@ private ListFindingsResponse( break; case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { listFindingsResults_ = new java.util.ArrayList< com.google.cloud.securitycenter.v1.ListFindingsResponse @@ -97,7 +96,7 @@ private ListFindingsResponse( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -109,7 +108,7 @@ private ListFindingsResponse( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { listFindingsResults_ = java.util.Collections.unmodifiableList(listFindingsResults_); } this.unknownFields = unknownFields.build(); @@ -266,7 +265,7 @@ private ListFindingsResult( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -643,14 +642,13 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult other = (com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult) obj; - boolean result = true; - result = result && (hasFinding() == other.hasFinding()); + if (hasFinding() != other.hasFinding()) return false; if (hasFinding()) { - result = result && getFinding().equals(other.getFinding()); + if (!getFinding().equals(other.getFinding())) return false; } - result = result && stateChange_ == other.stateChange_; - result = result && unknownFields.equals(other.unknownFields); - return result; + if (stateChange_ != other.stateChange_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -873,23 +871,23 @@ public com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResul @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override @@ -897,13 +895,13 @@ public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -961,7 +959,7 @@ public Builder mergeFrom( return this; } - private com.google.cloud.securitycenter.v1.Finding finding_ = null; + private com.google.cloud.securitycenter.v1.Finding finding_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.Finding, com.google.cloud.securitycenter.v1.Finding.Builder, @@ -1240,7 +1238,7 @@ public Builder clearStateChange() { @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override @@ -1537,16 +1535,15 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1.ListFindingsResponse other = (com.google.cloud.securitycenter.v1.ListFindingsResponse) obj; - boolean result = true; - result = result && getListFindingsResultsList().equals(other.getListFindingsResultsList()); - result = result && (hasReadTime() == other.hasReadTime()); + if (!getListFindingsResultsList().equals(other.getListFindingsResultsList())) return false; + if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - result = result && getReadTime().equals(other.getReadTime()); + if (!getReadTime().equals(other.getReadTime())) return false; } - result = result && getNextPageToken().equals(other.getNextPageToken()); - result = result && (getTotalSize() == other.getTotalSize()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -1762,7 +1759,7 @@ public com.google.cloud.securitycenter.v1.ListFindingsResponse buildPartial() { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (listFindingsResultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { listFindingsResults_ = java.util.Collections.unmodifiableList(listFindingsResults_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -1784,35 +1781,35 @@ public com.google.cloud.securitycenter.v1.ListFindingsResponse buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -1902,7 +1899,7 @@ public Builder mergeFrom( listFindingsResults_ = java.util.Collections.emptyList(); private void ensureListFindingsResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { listFindingsResults_ = new java.util.ArrayList< com.google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult>( @@ -2311,7 +2308,7 @@ public Builder removeListFindingsResults(int index) { com.google.cloud.securitycenter.v1.ListFindingsResponse .ListFindingsResultOrBuilder>( listFindingsResults_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); listFindingsResults_ = null; @@ -2319,7 +2316,7 @@ public Builder removeListFindingsResults(int index) { return listFindingsResultsBuilder_; } - private com.google.protobuf.Timestamp readTime_ = null; + private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, @@ -2639,7 +2636,7 @@ public Builder clearTotalSize() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java index 5b3e6ad16115..3a515337299f 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesRequest.java @@ -25,7 +25,6 @@ private ListSourcesRequest(com.google.protobuf.GeneratedMessageV3.Builder bui private ListSourcesRequest() { parent_ = ""; pageToken_ = ""; - pageSize_ = 0; } @java.lang.Override @@ -73,7 +72,7 @@ private ListSourcesRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -270,12 +269,11 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1.ListSourcesRequest other = (com.google.cloud.securitycenter.v1.ListSourcesRequest) obj; - boolean result = true; - result = result && getParent().equals(other.getParent()); - result = result && getPageToken().equals(other.getPageToken()); - result = result && (getPageSize() == other.getPageSize()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -479,35 +477,35 @@ public com.google.cloud.securitycenter.v1.ListSourcesRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -816,7 +814,7 @@ public Builder clearPageSize() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java index 952930fa2f2f..03f9ea965fee 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ListSourcesResponse.java @@ -53,7 +53,7 @@ private ListSourcesResponse( break; case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { sources_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } @@ -71,7 +71,7 @@ private ListSourcesResponse( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -83,7 +83,7 @@ private ListSourcesResponse( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { sources_ = java.util.Collections.unmodifiableList(sources_); } this.unknownFields = unknownFields.build(); @@ -267,11 +267,10 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1.ListSourcesResponse other = (com.google.cloud.securitycenter.v1.ListSourcesResponse) obj; - boolean result = true; - result = result && getSourcesList().equals(other.getSourcesList()); - result = result && getNextPageToken().equals(other.getNextPageToken()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getSourcesList().equals(other.getSourcesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -473,7 +472,7 @@ public com.google.cloud.securitycenter.v1.ListSourcesResponse buildPartial() { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (sourcesBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { sources_ = java.util.Collections.unmodifiableList(sources_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -489,35 +488,35 @@ public com.google.cloud.securitycenter.v1.ListSourcesResponse buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -600,7 +599,7 @@ public Builder mergeFrom( java.util.Collections.emptyList(); private void ensureSourcesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { sources_ = new java.util.ArrayList(sources_); bitField0_ |= 0x00000001; } @@ -939,10 +938,7 @@ public com.google.cloud.securitycenter.v1.Source.Builder addSourcesBuilder(int i com.google.cloud.securitycenter.v1.Source, com.google.cloud.securitycenter.v1.Source.Builder, com.google.cloud.securitycenter.v1.SourceOrBuilder>( - sources_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); + sources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); sources_ = null; } return sourcesBuilder_; @@ -1049,7 +1045,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java index 78e0966aadd6..fe37a70b4582 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/OrganizationSettings.java @@ -25,7 +25,6 @@ private OrganizationSettings(com.google.protobuf.GeneratedMessageV3.Builder b private OrganizationSettings() { name_ = ""; - enableAssetDiscovery_ = false; } @java.lang.Override @@ -85,7 +84,7 @@ private OrganizationSettings( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -240,7 +239,7 @@ private AssetDiscoveryConfig( case 10: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { projectIds_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } @@ -256,7 +255,7 @@ private AssetDiscoveryConfig( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -268,7 +267,7 @@ private AssetDiscoveryConfig( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { projectIds_ = projectIds_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); @@ -613,11 +612,10 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig other = (com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig) obj; - boolean result = true; - result = result && getProjectIdsList().equals(other.getProjectIdsList()); - result = result && inclusionMode_ == other.inclusionMode_; - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getProjectIdsList().equals(other.getProjectIdsList())) return false; + if (inclusionMode_ != other.inclusionMode_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -827,7 +825,7 @@ public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryCon new com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { projectIds_ = projectIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } @@ -840,23 +838,23 @@ public com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryCon @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override @@ -864,13 +862,13 @@ public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -942,7 +940,7 @@ public Builder mergeFrom( com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureProjectIdsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { projectIds_ = new com.google.protobuf.LazyStringArrayList(projectIds_); bitField0_ |= 0x00000001; } @@ -1179,7 +1177,7 @@ public Builder clearInclusionMode() { @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override @@ -1409,15 +1407,14 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1.OrganizationSettings other = (com.google.cloud.securitycenter.v1.OrganizationSettings) obj; - boolean result = true; - result = result && getName().equals(other.getName()); - result = result && (getEnableAssetDiscovery() == other.getEnableAssetDiscovery()); - result = result && (hasAssetDiscoveryConfig() == other.hasAssetDiscoveryConfig()); + if (!getName().equals(other.getName())) return false; + if (getEnableAssetDiscovery() != other.getEnableAssetDiscovery()) return false; + if (hasAssetDiscoveryConfig() != other.hasAssetDiscoveryConfig()) return false; if (hasAssetDiscoveryConfig()) { - result = result && getAssetDiscoveryConfig().equals(other.getAssetDiscoveryConfig()); + if (!getAssetDiscoveryConfig().equals(other.getAssetDiscoveryConfig())) return false; } - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -1632,35 +1629,35 @@ public com.google.cloud.securitycenter.v1.OrganizationSettings buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -1879,7 +1876,7 @@ public Builder clearEnableAssetDiscovery() { } private com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig - assetDiscoveryConfig_ = null; + assetDiscoveryConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig, com.google.cloud.securitycenter.v1.OrganizationSettings.AssetDiscoveryConfig.Builder, @@ -2092,7 +2089,7 @@ public Builder clearAssetDiscoveryConfig() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java index 6ed8a96581aa..79e28c97fd14 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/RunAssetDiscoveryRequest.java @@ -59,7 +59,7 @@ private RunAssetDiscoveryRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -181,10 +181,9 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest other = (com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest) obj; - boolean result = true; - result = result && getParent().equals(other.getParent()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getParent().equals(other.getParent())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -378,35 +377,35 @@ public com.google.cloud.securitycenter.v1.RunAssetDiscoveryRequest buildPartial( @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -557,7 +556,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java index d49a7015afdc..435b2e5077f6 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityMarks.java @@ -62,7 +62,7 @@ private SecurityMarks( } case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { marks_ = com.google.protobuf.MapField.newMapField(MarksDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000002; @@ -75,7 +75,7 @@ private SecurityMarks( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -344,11 +344,10 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1.SecurityMarks other = (com.google.cloud.securitycenter.v1.SecurityMarks) obj; - boolean result = true; - result = result && getName().equals(other.getName()); - result = result && internalGetMarks().equals(other.internalGetMarks()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getName().equals(other.getName())) return false; + if (!internalGetMarks().equals(other.internalGetMarks())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -574,35 +573,35 @@ public com.google.cloud.securitycenter.v1.SecurityMarks buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -963,7 +962,7 @@ public Builder putAllMarks(java.util.Map val @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java index eafdc874786b..51d59efb3dc5 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SetFindingStateRequest.java @@ -82,7 +82,7 @@ private SetFindingStateRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -289,15 +289,14 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1.SetFindingStateRequest other = (com.google.cloud.securitycenter.v1.SetFindingStateRequest) obj; - boolean result = true; - result = result && getName().equals(other.getName()); - result = result && state_ == other.state_; - result = result && (hasStartTime() == other.hasStartTime()); + if (!getName().equals(other.getName())) return false; + if (state_ != other.state_) return false; + if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - result = result && getStartTime().equals(other.getStartTime()); + if (!getStartTime().equals(other.getStartTime())) return false; } - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -511,35 +510,35 @@ public com.google.cloud.securitycenter.v1.SetFindingStateRequest buildPartial() @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -782,7 +781,7 @@ public Builder clearState() { return this; } - private com.google.protobuf.Timestamp startTime_ = null; + private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, @@ -959,7 +958,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java index 0e374f38d4a1..1d6c7a849b24 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Source.java @@ -77,7 +77,7 @@ private Source( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -325,12 +325,11 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1.Source other = (com.google.cloud.securitycenter.v1.Source) obj; - boolean result = true; - result = result && getName().equals(other.getName()); - result = result && getDisplayName().equals(other.getDisplayName()); - result = result && getDescription().equals(other.getDescription()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -535,35 +534,35 @@ public com.google.cloud.securitycenter.v1.Source buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -978,7 +977,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequest.java index d6bd5900dbe9..2e51f9459def 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateFindingRequest.java @@ -81,7 +81,7 @@ private UpdateFindingRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -271,17 +271,16 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1.UpdateFindingRequest other = (com.google.cloud.securitycenter.v1.UpdateFindingRequest) obj; - boolean result = true; - result = result && (hasFinding() == other.hasFinding()); + if (hasFinding() != other.hasFinding()) return false; if (hasFinding()) { - result = result && getFinding().equals(other.getFinding()); + if (!getFinding().equals(other.getFinding())) return false; } - result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - result = result && getUpdateMask().equals(other.getUpdateMask()); + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -500,35 +499,35 @@ public com.google.cloud.securitycenter.v1.UpdateFindingRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -580,7 +579,7 @@ public Builder mergeFrom( return this; } - private com.google.cloud.securitycenter.v1.Finding finding_ = null; + private com.google.cloud.securitycenter.v1.Finding finding_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.Finding, com.google.cloud.securitycenter.v1.Finding.Builder, @@ -797,7 +796,7 @@ public com.google.cloud.securitycenter.v1.FindingOrBuilder getFindingOrBuilder() return findingBuilder_; } - private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, @@ -1023,7 +1022,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java index ae17df86fa4b..ec9dc4e330af 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateOrganizationSettingsRequest.java @@ -83,7 +83,7 @@ private UpdateOrganizationSettingsRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -251,17 +251,16 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest other = (com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest) obj; - boolean result = true; - result = result && (hasOrganizationSettings() == other.hasOrganizationSettings()); + if (hasOrganizationSettings() != other.hasOrganizationSettings()) return false; if (hasOrganizationSettings()) { - result = result && getOrganizationSettings().equals(other.getOrganizationSettings()); + if (!getOrganizationSettings().equals(other.getOrganizationSettings())) return false; } - result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - result = result && getUpdateMask().equals(other.getUpdateMask()); + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -484,35 +483,35 @@ public com.google.cloud.securitycenter.v1.UpdateOrganizationSettingsRequest buil @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -568,7 +567,7 @@ public Builder mergeFrom( return this; } - private com.google.cloud.securitycenter.v1.OrganizationSettings organizationSettings_ = null; + private com.google.cloud.securitycenter.v1.OrganizationSettings organizationSettings_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.OrganizationSettings, com.google.cloud.securitycenter.v1.OrganizationSettings.Builder, @@ -755,7 +754,7 @@ public Builder clearOrganizationSettings() { return organizationSettingsBuilder_; } - private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, @@ -945,7 +944,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java index d26e93c8aa28..ecba6092fcee 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSecurityMarksRequest.java @@ -96,7 +96,7 @@ private UpdateSecurityMarksRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -319,21 +319,20 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest other = (com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest) obj; - boolean result = true; - result = result && (hasSecurityMarks() == other.hasSecurityMarks()); + if (hasSecurityMarks() != other.hasSecurityMarks()) return false; if (hasSecurityMarks()) { - result = result && getSecurityMarks().equals(other.getSecurityMarks()); + if (!getSecurityMarks().equals(other.getSecurityMarks())) return false; } - result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - result = result && getUpdateMask().equals(other.getUpdateMask()); + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } - result = result && (hasStartTime() == other.hasStartTime()); + if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - result = result && getStartTime().equals(other.getStartTime()); + if (!getStartTime().equals(other.getStartTime())) return false; } - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -568,35 +567,35 @@ public com.google.cloud.securitycenter.v1.UpdateSecurityMarksRequest buildPartia @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -653,7 +652,7 @@ public Builder mergeFrom( return this; } - private com.google.cloud.securitycenter.v1.SecurityMarks securityMarks_ = null; + private com.google.cloud.securitycenter.v1.SecurityMarks securityMarks_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.SecurityMarks, com.google.cloud.securitycenter.v1.SecurityMarks.Builder, @@ -835,7 +834,7 @@ public com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMark return securityMarksBuilder_; } - private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, @@ -1041,7 +1040,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return updateMaskBuilder_; } - private com.google.protobuf.Timestamp startTime_ = null; + private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, @@ -1236,7 +1235,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java index 400e07512106..49c98cef1723 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/UpdateSourceRequest.java @@ -81,7 +81,7 @@ private UpdateSourceRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -247,17 +247,16 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1.UpdateSourceRequest other = (com.google.cloud.securitycenter.v1.UpdateSourceRequest) obj; - boolean result = true; - result = result && (hasSource() == other.hasSource()); + if (hasSource() != other.hasSource()) return false; if (hasSource()) { - result = result && getSource().equals(other.getSource()); + if (!getSource().equals(other.getSource())) return false; } - result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - result = result && getUpdateMask().equals(other.getUpdateMask()); + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -476,35 +475,35 @@ public com.google.cloud.securitycenter.v1.UpdateSourceRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -556,7 +555,7 @@ public Builder mergeFrom( return this; } - private com.google.cloud.securitycenter.v1.Source source_ = null; + private com.google.cloud.securitycenter.v1.Source source_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.Source, com.google.cloud.securitycenter.v1.Source.Builder, @@ -737,7 +736,7 @@ public com.google.cloud.securitycenter.v1.SourceOrBuilder getSourceOrBuilder() { return sourceBuilder_; } - private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, @@ -927,7 +926,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Asset.java b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Asset.java index c646c93ff514..e92aa9ddffd4 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Asset.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Asset.java @@ -82,7 +82,7 @@ private Asset( } case 58: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { resourceProperties_ = com.google.protobuf.MapField.newMapField( ResourcePropertiesDefaultEntryHolder.defaultEntry); @@ -147,7 +147,7 @@ private Asset( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -417,7 +417,7 @@ private SecurityCenterProperties( case 42: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { resourceOwners_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000010; } @@ -426,7 +426,7 @@ private SecurityCenterProperties( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -438,7 +438,7 @@ private SecurityCenterProperties( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + if (((mutable_bitField0_ & 0x00000010) != 0)) { resourceOwners_ = resourceOwners_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); @@ -774,14 +774,13 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties other = (com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties) obj; - boolean result = true; - result = result && getResourceName().equals(other.getResourceName()); - result = result && getResourceType().equals(other.getResourceType()); - result = result && getResourceParent().equals(other.getResourceParent()); - result = result && getResourceProject().equals(other.getResourceProject()); - result = result && getResourceOwnersList().equals(other.getResourceOwnersList()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getResourceName().equals(other.getResourceName())) return false; + if (!getResourceType().equals(other.getResourceType())) return false; + if (!getResourceParent().equals(other.getResourceParent())) return false; + if (!getResourceProject().equals(other.getResourceProject())) return false; + if (!getResourceOwnersList().equals(other.getResourceOwnersList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -1001,7 +1000,7 @@ public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties bu result.resourceType_ = resourceType_; result.resourceParent_ = resourceParent_; result.resourceProject_ = resourceProject_; - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { resourceOwners_ = resourceOwners_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000010); } @@ -1013,23 +1012,23 @@ public com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties bu @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override @@ -1037,13 +1036,13 @@ public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -1537,7 +1536,7 @@ public Builder setResourceProjectBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureResourceOwnersIsMutable() { - if (!((bitField0_ & 0x00000010) == 0x00000010)) { + if (!((bitField0_ & 0x00000010) != 0)) { resourceOwners_ = new com.google.protobuf.LazyStringArrayList(resourceOwners_); bitField0_ |= 0x00000010; } @@ -1679,7 +1678,7 @@ public Builder addResourceOwnersBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override @@ -2154,28 +2153,27 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1beta1.Asset other = (com.google.cloud.securitycenter.v1beta1.Asset) obj; - boolean result = true; - result = result && getName().equals(other.getName()); - result = result && (hasSecurityCenterProperties() == other.hasSecurityCenterProperties()); + if (!getName().equals(other.getName())) return false; + if (hasSecurityCenterProperties() != other.hasSecurityCenterProperties()) return false; if (hasSecurityCenterProperties()) { - result = result && getSecurityCenterProperties().equals(other.getSecurityCenterProperties()); + if (!getSecurityCenterProperties().equals(other.getSecurityCenterProperties())) return false; } - result = - result && internalGetResourceProperties().equals(other.internalGetResourceProperties()); - result = result && (hasSecurityMarks() == other.hasSecurityMarks()); + if (!internalGetResourceProperties().equals(other.internalGetResourceProperties())) + return false; + if (hasSecurityMarks() != other.hasSecurityMarks()) return false; if (hasSecurityMarks()) { - result = result && getSecurityMarks().equals(other.getSecurityMarks()); + if (!getSecurityMarks().equals(other.getSecurityMarks())) return false; } - result = result && (hasCreateTime() == other.hasCreateTime()); + if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - result = result && getCreateTime().equals(other.getCreateTime()); + if (!getCreateTime().equals(other.getCreateTime())) return false; } - result = result && (hasUpdateTime() == other.hasUpdateTime()); + if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - result = result && getUpdateTime().equals(other.getUpdateTime()); + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -2462,35 +2460,35 @@ public com.google.cloud.securitycenter.v1beta1.Asset buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -2663,7 +2661,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties - securityCenterProperties_ = null; + securityCenterProperties_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties, com.google.cloud.securitycenter.v1beta1.Asset.SecurityCenterProperties.Builder, @@ -3049,7 +3047,7 @@ public Builder putAllResourceProperties( return this; } - private com.google.cloud.securitycenter.v1beta1.SecurityMarks securityMarks_ = null; + private com.google.cloud.securitycenter.v1beta1.SecurityMarks securityMarks_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1beta1.SecurityMarks, com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder, @@ -3241,7 +3239,7 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder getSecurity return securityMarksBuilder_; } - private com.google.protobuf.Timestamp createTime_ = null; + private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, @@ -3420,7 +3418,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTimeBuilder_; } - private com.google.protobuf.Timestamp updateTime_ = null; + private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, @@ -3610,7 +3608,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequest.java index 90bec9415021..f187cbe56ccd 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateFindingRequest.java @@ -83,7 +83,7 @@ private CreateFindingRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -308,15 +308,14 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1beta1.CreateFindingRequest other = (com.google.cloud.securitycenter.v1beta1.CreateFindingRequest) obj; - boolean result = true; - result = result && getParent().equals(other.getParent()); - result = result && getFindingId().equals(other.getFindingId()); - result = result && (hasFinding() == other.hasFinding()); + if (!getParent().equals(other.getParent())) return false; + if (!getFindingId().equals(other.getFindingId())) return false; + if (hasFinding() != other.hasFinding()) return false; if (hasFinding()) { - result = result && getFinding().equals(other.getFinding()); + if (!getFinding().equals(other.getFinding())) return false; } - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -531,35 +530,35 @@ public com.google.cloud.securitycenter.v1beta1.CreateFindingRequest buildPartial @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -820,7 +819,7 @@ public Builder setFindingIdBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.cloud.securitycenter.v1beta1.Finding finding_ = null; + private com.google.cloud.securitycenter.v1beta1.Finding finding_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1beta1.Finding, com.google.cloud.securitycenter.v1beta1.Finding.Builder, @@ -1013,7 +1012,7 @@ public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuil @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequest.java index fc8620fe6847..e5c5c48b6772 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/CreateSourceRequest.java @@ -75,7 +75,7 @@ private CreateSourceRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -247,14 +247,13 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1beta1.CreateSourceRequest other = (com.google.cloud.securitycenter.v1beta1.CreateSourceRequest) obj; - boolean result = true; - result = result && getParent().equals(other.getParent()); - result = result && (hasSource() == other.hasSource()); + if (!getParent().equals(other.getParent())) return false; + if (hasSource() != other.hasSource()) return false; if (hasSource()) { - result = result && getSource().equals(other.getSource()); + if (!getSource().equals(other.getSource())) return false; } - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -463,35 +462,35 @@ public com.google.cloud.securitycenter.v1beta1.CreateSourceRequest buildPartial( @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -643,7 +642,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.cloud.securitycenter.v1beta1.Source source_ = null; + private com.google.cloud.securitycenter.v1beta1.Source source_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1beta1.Source, com.google.cloud.securitycenter.v1beta1.Source.Builder, @@ -836,7 +835,7 @@ public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilde @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Finding.java b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Finding.java index 66e9daf45dc1..eb1d3523a78b 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Finding.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Finding.java @@ -103,7 +103,7 @@ private Finding( } case 58: { - if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + if (!((mutable_bitField0_ & 0x00000040) != 0)) { sourceProperties_ = com.google.protobuf.MapField.newMapField( SourcePropertiesDefaultEntryHolder.defaultEntry); @@ -168,7 +168,7 @@ private Finding( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -986,28 +986,27 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1beta1.Finding other = (com.google.cloud.securitycenter.v1beta1.Finding) obj; - boolean result = true; - result = result && getName().equals(other.getName()); - result = result && getParent().equals(other.getParent()); - result = result && getResourceName().equals(other.getResourceName()); - result = result && state_ == other.state_; - result = result && getCategory().equals(other.getCategory()); - result = result && getExternalUri().equals(other.getExternalUri()); - result = result && internalGetSourceProperties().equals(other.internalGetSourceProperties()); - result = result && (hasSecurityMarks() == other.hasSecurityMarks()); + if (!getName().equals(other.getName())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getResourceName().equals(other.getResourceName())) return false; + if (state_ != other.state_) return false; + if (!getCategory().equals(other.getCategory())) return false; + if (!getExternalUri().equals(other.getExternalUri())) return false; + if (!internalGetSourceProperties().equals(other.internalGetSourceProperties())) return false; + if (hasSecurityMarks() != other.hasSecurityMarks()) return false; if (hasSecurityMarks()) { - result = result && getSecurityMarks().equals(other.getSecurityMarks()); + if (!getSecurityMarks().equals(other.getSecurityMarks())) return false; } - result = result && (hasEventTime() == other.hasEventTime()); + if (hasEventTime() != other.hasEventTime()) return false; if (hasEventTime()) { - result = result && getEventTime().equals(other.getEventTime()); + if (!getEventTime().equals(other.getEventTime())) return false; } - result = result && (hasCreateTime() == other.hasCreateTime()); + if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - result = result && getCreateTime().equals(other.getCreateTime()); + if (!getCreateTime().equals(other.getCreateTime())) return false; } - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -1304,35 +1303,35 @@ public com.google.cloud.securitycenter.v1beta1.Finding buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -2211,7 +2210,7 @@ public Builder putAllSourceProperties( return this; } - private com.google.cloud.securitycenter.v1beta1.SecurityMarks securityMarks_ = null; + private com.google.cloud.securitycenter.v1beta1.SecurityMarks securityMarks_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1beta1.SecurityMarks, com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder, @@ -2412,7 +2411,7 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder getSecurity return securityMarksBuilder_; } - private com.google.protobuf.Timestamp eventTime_ = null; + private com.google.protobuf.Timestamp eventTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, @@ -2605,7 +2604,7 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { return eventTimeBuilder_; } - private com.google.protobuf.Timestamp createTime_ = null; + private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, @@ -2786,7 +2785,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequest.java index 92f531afe06b..8b59067adf09 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetOrganizationSettingsRequest.java @@ -60,7 +60,7 @@ private GetOrganizationSettingsRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -182,10 +182,9 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest other = (com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest) obj; - boolean result = true; - result = result && getName().equals(other.getName()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -384,35 +383,35 @@ public com.google.cloud.securitycenter.v1beta1.GetOrganizationSettingsRequest bu @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -567,7 +566,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequest.java index a720d86a2882..e2beb787b814 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GetSourceRequest.java @@ -59,7 +59,7 @@ private GetSourceRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -181,10 +181,9 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1beta1.GetSourceRequest other = (com.google.cloud.securitycenter.v1beta1.GetSourceRequest) obj; - boolean result = true; - result = result && getName().equals(other.getName()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -378,35 +377,35 @@ public com.google.cloud.securitycenter.v1beta1.GetSourceRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -557,7 +556,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequest.java index b30408786934..75b8569e4c3d 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsRequest.java @@ -27,7 +27,6 @@ private GroupAssetsRequest() { filter_ = ""; groupBy_ = ""; pageToken_ = ""; - pageSize_ = 0; } @java.lang.Override @@ -119,7 +118,7 @@ private GroupAssetsRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -619,22 +618,21 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest other = (com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest) obj; - boolean result = true; - result = result && getParent().equals(other.getParent()); - result = result && getFilter().equals(other.getFilter()); - result = result && getGroupBy().equals(other.getGroupBy()); - result = result && (hasCompareDuration() == other.hasCompareDuration()); + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getGroupBy().equals(other.getGroupBy())) return false; + if (hasCompareDuration() != other.hasCompareDuration()) return false; if (hasCompareDuration()) { - result = result && getCompareDuration().equals(other.getCompareDuration()); + if (!getCompareDuration().equals(other.getCompareDuration())) return false; } - result = result && (hasReadTime() == other.hasReadTime()); + if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - result = result && getReadTime().equals(other.getReadTime()); + if (!getReadTime().equals(other.getReadTime())) return false; } - result = result && getPageToken().equals(other.getPageToken()); - result = result && (getPageSize() == other.getPageSize()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -878,35 +876,35 @@ public com.google.cloud.securitycenter.v1beta1.GroupAssetsRequest buildPartial() @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -1404,7 +1402,7 @@ public Builder setGroupByBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.Duration compareDuration_ = null; + private com.google.protobuf.Duration compareDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, @@ -1729,7 +1727,7 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { return compareDurationBuilder_; } - private com.google.protobuf.Timestamp readTime_ = null; + private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, @@ -2084,7 +2082,7 @@ public Builder clearPageSize() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponse.java b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponse.java index aed7a130e22d..f76e81afd698 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponse.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupAssetsResponse.java @@ -53,7 +53,7 @@ private GroupAssetsResponse( break; case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { groupByResults_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; @@ -88,7 +88,7 @@ private GroupAssetsResponse( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -100,7 +100,7 @@ private GroupAssetsResponse( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { groupByResults_ = java.util.Collections.unmodifiableList(groupByResults_); } this.unknownFields = unknownFields.build(); @@ -341,15 +341,14 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse other = (com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse) obj; - boolean result = true; - result = result && getGroupByResultsList().equals(other.getGroupByResultsList()); - result = result && (hasReadTime() == other.hasReadTime()); + if (!getGroupByResultsList().equals(other.getGroupByResultsList())) return false; + if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - result = result && getReadTime().equals(other.getReadTime()); + if (!getReadTime().equals(other.getReadTime())) return false; } - result = result && getNextPageToken().equals(other.getNextPageToken()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -561,7 +560,7 @@ public com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse buildPartial( int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (groupByResultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { groupByResults_ = java.util.Collections.unmodifiableList(groupByResults_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -582,35 +581,35 @@ public com.google.cloud.securitycenter.v1beta1.GroupAssetsResponse buildPartial( @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -696,7 +695,7 @@ public Builder mergeFrom( java.util.Collections.emptyList(); private void ensureGroupByResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { groupByResults_ = new java.util.ArrayList( groupByResults_); @@ -1082,7 +1081,7 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder addGroupByRes com.google.cloud.securitycenter.v1beta1.GroupResult.Builder, com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder>( groupByResults_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); groupByResults_ = null; @@ -1090,7 +1089,7 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder addGroupByRes return groupByResultsBuilder_; } - private com.google.protobuf.Timestamp readTime_ = null; + private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, @@ -1366,7 +1365,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequest.java index 3a2959b8c746..febbdacd9981 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsRequest.java @@ -27,7 +27,6 @@ private GroupFindingsRequest() { filter_ = ""; groupBy_ = ""; pageToken_ = ""; - pageSize_ = 0; } @java.lang.Override @@ -104,7 +103,7 @@ private GroupFindingsRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -507,18 +506,17 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest other = (com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest) obj; - boolean result = true; - result = result && getParent().equals(other.getParent()); - result = result && getFilter().equals(other.getFilter()); - result = result && getGroupBy().equals(other.getGroupBy()); - result = result && (hasReadTime() == other.hasReadTime()); + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getGroupBy().equals(other.getGroupBy())) return false; + if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - result = result && getReadTime().equals(other.getReadTime()); + if (!getReadTime().equals(other.getReadTime())) return false; } - result = result && getPageToken().equals(other.getPageToken()); - result = result && (getPageSize() == other.getPageSize()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -748,35 +746,35 @@ public com.google.cloud.securitycenter.v1beta1.GroupFindingsRequest buildPartial @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -1267,7 +1265,7 @@ public Builder setGroupByBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.Timestamp readTime_ = null; + private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, @@ -1622,7 +1620,7 @@ public Builder clearPageSize() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponse.java b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponse.java index d721873467b4..7aab4fe469b2 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponse.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupFindingsResponse.java @@ -53,7 +53,7 @@ private GroupFindingsResponse( break; case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { groupByResults_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; @@ -88,7 +88,7 @@ private GroupFindingsResponse( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -100,7 +100,7 @@ private GroupFindingsResponse( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { groupByResults_ = java.util.Collections.unmodifiableList(groupByResults_); } this.unknownFields = unknownFields.build(); @@ -341,15 +341,14 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse other = (com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse) obj; - boolean result = true; - result = result && getGroupByResultsList().equals(other.getGroupByResultsList()); - result = result && (hasReadTime() == other.hasReadTime()); + if (!getGroupByResultsList().equals(other.getGroupByResultsList())) return false; + if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - result = result && getReadTime().equals(other.getReadTime()); + if (!getReadTime().equals(other.getReadTime())) return false; } - result = result && getNextPageToken().equals(other.getNextPageToken()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -562,7 +561,7 @@ public com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse buildPartia int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (groupByResultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { groupByResults_ = java.util.Collections.unmodifiableList(groupByResults_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -583,35 +582,35 @@ public com.google.cloud.securitycenter.v1beta1.GroupFindingsResponse buildPartia @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -699,7 +698,7 @@ public Builder mergeFrom( java.util.Collections.emptyList(); private void ensureGroupByResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { groupByResults_ = new java.util.ArrayList( groupByResults_); @@ -1085,7 +1084,7 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder addGroupByRes com.google.cloud.securitycenter.v1beta1.GroupResult.Builder, com.google.cloud.securitycenter.v1beta1.GroupResultOrBuilder>( groupByResults_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); groupByResults_ = null; @@ -1093,7 +1092,7 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult.Builder addGroupByRes return groupByResultsBuilder_; } - private com.google.protobuf.Timestamp readTime_ = null; + private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, @@ -1369,7 +1368,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResult.java b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResult.java index 505e16d4939f..1362c6f43b0c 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResult.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/GroupResult.java @@ -22,9 +22,7 @@ private GroupResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GroupResult() { - count_ = 0L; - } + private GroupResult() {} @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { @@ -52,7 +50,7 @@ private GroupResult( break; case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { properties_ = com.google.protobuf.MapField.newMapField( PropertiesDefaultEntryHolder.defaultEntry); @@ -73,7 +71,7 @@ private GroupResult( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -288,11 +286,10 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1beta1.GroupResult other = (com.google.cloud.securitycenter.v1beta1.GroupResult) obj; - boolean result = true; - result = result && internalGetProperties().equals(other.internalGetProperties()); - result = result && (getCount() == other.getCount()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!internalGetProperties().equals(other.internalGetProperties())) return false; + if (getCount() != other.getCount()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -515,35 +512,35 @@ public com.google.cloud.securitycenter.v1beta1.GroupResult buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -799,7 +796,7 @@ public Builder clearCount() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequest.java index 04465cb9c383..19e69c274c21 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsRequest.java @@ -27,7 +27,6 @@ private ListAssetsRequest() { filter_ = ""; orderBy_ = ""; pageToken_ = ""; - pageSize_ = 0; } @java.lang.Override @@ -134,7 +133,7 @@ private ListAssetsRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -690,26 +689,25 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1beta1.ListAssetsRequest other = (com.google.cloud.securitycenter.v1beta1.ListAssetsRequest) obj; - boolean result = true; - result = result && getParent().equals(other.getParent()); - result = result && getFilter().equals(other.getFilter()); - result = result && getOrderBy().equals(other.getOrderBy()); - result = result && (hasReadTime() == other.hasReadTime()); + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - result = result && getReadTime().equals(other.getReadTime()); + if (!getReadTime().equals(other.getReadTime())) return false; } - result = result && (hasCompareDuration() == other.hasCompareDuration()); + if (hasCompareDuration() != other.hasCompareDuration()) return false; if (hasCompareDuration()) { - result = result && getCompareDuration().equals(other.getCompareDuration()); + if (!getCompareDuration().equals(other.getCompareDuration())) return false; } - result = result && (hasFieldMask() == other.hasFieldMask()); + if (hasFieldMask() != other.hasFieldMask()) return false; if (hasFieldMask()) { - result = result && getFieldMask().equals(other.getFieldMask()); + if (!getFieldMask().equals(other.getFieldMask())) return false; } - result = result && getPageToken().equals(other.getPageToken()); - result = result && (getPageSize() == other.getPageSize()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -968,35 +966,35 @@ public com.google.cloud.securitycenter.v1beta1.ListAssetsRequest buildPartial() @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -1487,7 +1485,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.Timestamp readTime_ = null; + private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, @@ -1689,7 +1687,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { return readTimeBuilder_; } - private com.google.protobuf.Duration compareDuration_ = null; + private com.google.protobuf.Duration compareDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, @@ -2032,7 +2030,7 @@ public com.google.protobuf.DurationOrBuilder getCompareDurationOrBuilder() { return compareDurationBuilder_; } - private com.google.protobuf.FieldMask fieldMask_ = null; + private com.google.protobuf.FieldMask fieldMask_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, @@ -2387,7 +2385,7 @@ public Builder clearPageSize() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponse.java b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponse.java index 782af0a2aa9a..4aa000d0bb89 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponse.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListAssetsResponse.java @@ -25,7 +25,6 @@ private ListAssetsResponse(com.google.protobuf.GeneratedMessageV3.Builder bui private ListAssetsResponse() { listAssetsResults_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - totalSize_ = 0; } @java.lang.Override @@ -54,7 +53,7 @@ private ListAssetsResponse( break; case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { listAssetsResults_ = new java.util.ArrayList< com.google.cloud.securitycenter.v1beta1.ListAssetsResponse @@ -97,7 +96,7 @@ private ListAssetsResponse( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -109,7 +108,7 @@ private ListAssetsResponse( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { listAssetsResults_ = java.util.Collections.unmodifiableList(listAssetsResults_); } this.unknownFields = unknownFields.build(); @@ -265,7 +264,7 @@ private ListAssetsResult( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -633,14 +632,13 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult other = (com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult) obj; - boolean result = true; - result = result && (hasAsset() == other.hasAsset()); + if (hasAsset() != other.hasAsset()) return false; if (hasAsset()) { - result = result && getAsset().equals(other.getAsset()); + if (!getAsset().equals(other.getAsset())) return false; } - result = result && state_ == other.state_; - result = result && unknownFields.equals(other.unknownFields); - return result; + if (state_ != other.state_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -863,23 +861,23 @@ public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResu @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override @@ -887,13 +885,13 @@ public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -952,7 +950,7 @@ public Builder mergeFrom( return this; } - private com.google.cloud.securitycenter.v1beta1.Asset asset_ = null; + private com.google.cloud.securitycenter.v1beta1.Asset asset_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1beta1.Asset, com.google.cloud.securitycenter.v1beta1.Asset.Builder, @@ -1229,7 +1227,7 @@ public Builder clearState() { @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override @@ -1527,16 +1525,15 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1beta1.ListAssetsResponse other = (com.google.cloud.securitycenter.v1beta1.ListAssetsResponse) obj; - boolean result = true; - result = result && getListAssetsResultsList().equals(other.getListAssetsResultsList()); - result = result && (hasReadTime() == other.hasReadTime()); + if (!getListAssetsResultsList().equals(other.getListAssetsResultsList())) return false; + if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - result = result && getReadTime().equals(other.getReadTime()); + if (!getReadTime().equals(other.getReadTime())) return false; } - result = result && getNextPageToken().equals(other.getNextPageToken()); - result = result && (getTotalSize() == other.getTotalSize()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -1752,7 +1749,7 @@ public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse buildPartial() int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (listAssetsResultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { listAssetsResults_ = java.util.Collections.unmodifiableList(listAssetsResults_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -1774,35 +1771,35 @@ public com.google.cloud.securitycenter.v1beta1.ListAssetsResponse buildPartial() @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -1892,7 +1889,7 @@ public Builder mergeFrom( listAssetsResults_ = java.util.Collections.emptyList(); private void ensureListAssetsResultsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { listAssetsResults_ = new java.util.ArrayList< com.google.cloud.securitycenter.v1beta1.ListAssetsResponse.ListAssetsResult>( @@ -2302,7 +2299,7 @@ public Builder removeListAssetsResults(int index) { com.google.cloud.securitycenter.v1beta1.ListAssetsResponse .ListAssetsResultOrBuilder>( listAssetsResults_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); listAssetsResults_ = null; @@ -2310,7 +2307,7 @@ public Builder removeListAssetsResults(int index) { return listAssetsResultsBuilder_; } - private com.google.protobuf.Timestamp readTime_ = null; + private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, @@ -2630,7 +2627,7 @@ public Builder clearTotalSize() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequest.java index 7437bf48cfc2..8eb0bb2474f5 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsRequest.java @@ -27,7 +27,6 @@ private ListFindingsRequest() { filter_ = ""; orderBy_ = ""; pageToken_ = ""; - pageSize_ = 0; } @java.lang.Override @@ -119,7 +118,7 @@ private ListFindingsRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -571,22 +570,21 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1beta1.ListFindingsRequest other = (com.google.cloud.securitycenter.v1beta1.ListFindingsRequest) obj; - boolean result = true; - result = result && getParent().equals(other.getParent()); - result = result && getFilter().equals(other.getFilter()); - result = result && getOrderBy().equals(other.getOrderBy()); - result = result && (hasReadTime() == other.hasReadTime()); + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - result = result && getReadTime().equals(other.getReadTime()); + if (!getReadTime().equals(other.getReadTime())) return false; } - result = result && (hasFieldMask() == other.hasFieldMask()); + if (hasFieldMask() != other.hasFieldMask()) return false; if (hasFieldMask()) { - result = result && getFieldMask().equals(other.getFieldMask()); + if (!getFieldMask().equals(other.getFieldMask())) return false; } - result = result && getPageToken().equals(other.getPageToken()); - result = result && (getPageSize() == other.getPageSize()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -830,35 +828,35 @@ public com.google.cloud.securitycenter.v1beta1.ListFindingsRequest buildPartial( @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -1346,7 +1344,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.Timestamp readTime_ = null; + private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, @@ -1548,7 +1546,7 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { return readTimeBuilder_; } - private com.google.protobuf.FieldMask fieldMask_ = null; + private com.google.protobuf.FieldMask fieldMask_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, @@ -1894,7 +1892,7 @@ public Builder clearPageSize() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponse.java b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponse.java index d312962cc343..9630b31435ab 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponse.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListFindingsResponse.java @@ -25,7 +25,6 @@ private ListFindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder b private ListFindingsResponse() { findings_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - totalSize_ = 0; } @java.lang.Override @@ -54,7 +53,7 @@ private ListFindingsResponse( break; case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { findings_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; @@ -93,7 +92,7 @@ private ListFindingsResponse( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -105,7 +104,7 @@ private ListFindingsResponse( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { findings_ = java.util.Collections.unmodifiableList(findings_); } this.unknownFields = unknownFields.build(); @@ -355,16 +354,15 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1beta1.ListFindingsResponse other = (com.google.cloud.securitycenter.v1beta1.ListFindingsResponse) obj; - boolean result = true; - result = result && getFindingsList().equals(other.getFindingsList()); - result = result && (hasReadTime() == other.hasReadTime()); + if (!getFindingsList().equals(other.getFindingsList())) return false; + if (hasReadTime() != other.hasReadTime()) return false; if (hasReadTime()) { - result = result && getReadTime().equals(other.getReadTime()); + if (!getReadTime().equals(other.getReadTime())) return false; } - result = result && getNextPageToken().equals(other.getNextPageToken()); - result = result && (getTotalSize() == other.getTotalSize()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -581,7 +579,7 @@ public com.google.cloud.securitycenter.v1beta1.ListFindingsResponse buildPartial int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (findingsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { findings_ = java.util.Collections.unmodifiableList(findings_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -603,35 +601,35 @@ public com.google.cloud.securitycenter.v1beta1.ListFindingsResponse buildPartial @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -721,7 +719,7 @@ public Builder mergeFrom( java.util.Collections.emptyList(); private void ensureFindingsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { findings_ = new java.util.ArrayList(findings_); bitField0_ |= 0x00000001; @@ -1063,16 +1061,13 @@ public com.google.cloud.securitycenter.v1beta1.Finding.Builder addFindingsBuilde com.google.cloud.securitycenter.v1beta1.Finding, com.google.cloud.securitycenter.v1beta1.Finding.Builder, com.google.cloud.securitycenter.v1beta1.FindingOrBuilder>( - findings_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); + findings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); findings_ = null; } return findingsBuilder_; } - private com.google.protobuf.Timestamp readTime_ = null; + private com.google.protobuf.Timestamp readTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, @@ -1392,7 +1387,7 @@ public Builder clearTotalSize() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequest.java index 183147424093..61d176e005e4 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesRequest.java @@ -25,7 +25,6 @@ private ListSourcesRequest(com.google.protobuf.GeneratedMessageV3.Builder bui private ListSourcesRequest() { parent_ = ""; pageToken_ = ""; - pageSize_ = 0; } @java.lang.Override @@ -73,7 +72,7 @@ private ListSourcesRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -270,12 +269,11 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1beta1.ListSourcesRequest other = (com.google.cloud.securitycenter.v1beta1.ListSourcesRequest) obj; - boolean result = true; - result = result && getParent().equals(other.getParent()); - result = result && getPageToken().equals(other.getPageToken()); - result = result && (getPageSize() == other.getPageSize()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -479,35 +477,35 @@ public com.google.cloud.securitycenter.v1beta1.ListSourcesRequest buildPartial() @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -816,7 +814,7 @@ public Builder clearPageSize() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponse.java b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponse.java index c1e3a131d93c..0cac882aa624 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponse.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/ListSourcesResponse.java @@ -53,7 +53,7 @@ private ListSourcesResponse( break; case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { sources_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; @@ -72,7 +72,7 @@ private ListSourcesResponse( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -84,7 +84,7 @@ private ListSourcesResponse( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { sources_ = java.util.Collections.unmodifiableList(sources_); } this.unknownFields = unknownFields.build(); @@ -268,11 +268,10 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1beta1.ListSourcesResponse other = (com.google.cloud.securitycenter.v1beta1.ListSourcesResponse) obj; - boolean result = true; - result = result && getSourcesList().equals(other.getSourcesList()); - result = result && getNextPageToken().equals(other.getNextPageToken()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getSourcesList().equals(other.getSourcesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -474,7 +473,7 @@ public com.google.cloud.securitycenter.v1beta1.ListSourcesResponse buildPartial( int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (sourcesBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { sources_ = java.util.Collections.unmodifiableList(sources_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -490,35 +489,35 @@ public com.google.cloud.securitycenter.v1beta1.ListSourcesResponse buildPartial( @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -601,7 +600,7 @@ public Builder mergeFrom( java.util.Collections.emptyList(); private void ensureSourcesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { sources_ = new java.util.ArrayList(sources_); bitField0_ |= 0x00000001; @@ -942,10 +941,7 @@ public com.google.cloud.securitycenter.v1beta1.Source.Builder addSourcesBuilder( com.google.cloud.securitycenter.v1beta1.Source, com.google.cloud.securitycenter.v1beta1.Source.Builder, com.google.cloud.securitycenter.v1beta1.SourceOrBuilder>( - sources_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); + sources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); sources_ = null; } return sourcesBuilder_; @@ -1052,7 +1048,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettings.java b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettings.java index 8cc3373c5c71..0eedaafa7836 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettings.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/OrganizationSettings.java @@ -25,7 +25,6 @@ private OrganizationSettings(com.google.protobuf.GeneratedMessageV3.Builder b private OrganizationSettings() { name_ = ""; - enableAssetDiscovery_ = false; } @java.lang.Override @@ -86,7 +85,7 @@ private OrganizationSettings( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -242,7 +241,7 @@ private AssetDiscoveryConfig( case 10: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { projectIds_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } @@ -258,7 +257,7 @@ private AssetDiscoveryConfig( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -270,7 +269,7 @@ private AssetDiscoveryConfig( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { projectIds_ = projectIds_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); @@ -617,11 +616,10 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig other = (com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig) obj; - boolean result = true; - result = result && getProjectIdsList().equals(other.getProjectIdsList()); - result = result && inclusionMode_ == other.inclusionMode_; - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getProjectIdsList().equals(other.getProjectIdsList())) return false; + if (inclusionMode_ != other.inclusionMode_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -835,7 +833,7 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { projectIds_ = projectIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } @@ -848,23 +846,23 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override @@ -872,13 +870,13 @@ public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -951,7 +949,7 @@ public Builder mergeFrom( com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureProjectIdsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { projectIds_ = new com.google.protobuf.LazyStringArrayList(projectIds_); bitField0_ |= 0x00000001; } @@ -1190,7 +1188,7 @@ public Builder clearInclusionMode() { @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override @@ -1420,15 +1418,14 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1beta1.OrganizationSettings other = (com.google.cloud.securitycenter.v1beta1.OrganizationSettings) obj; - boolean result = true; - result = result && getName().equals(other.getName()); - result = result && (getEnableAssetDiscovery() == other.getEnableAssetDiscovery()); - result = result && (hasAssetDiscoveryConfig() == other.hasAssetDiscoveryConfig()); + if (!getName().equals(other.getName())) return false; + if (getEnableAssetDiscovery() != other.getEnableAssetDiscovery()) return false; + if (hasAssetDiscoveryConfig() != other.hasAssetDiscoveryConfig()) return false; if (hasAssetDiscoveryConfig()) { - result = result && getAssetDiscoveryConfig().equals(other.getAssetDiscoveryConfig()); + if (!getAssetDiscoveryConfig().equals(other.getAssetDiscoveryConfig())) return false; } - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -1644,35 +1641,35 @@ public com.google.cloud.securitycenter.v1beta1.OrganizationSettings buildPartial @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -1892,7 +1889,7 @@ public Builder clearEnableAssetDiscovery() { } private com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig - assetDiscoveryConfig_ = null; + assetDiscoveryConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig, com.google.cloud.securitycenter.v1beta1.OrganizationSettings.AssetDiscoveryConfig @@ -2110,7 +2107,7 @@ public Builder clearAssetDiscoveryConfig() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequest.java index f184c0b72c6a..4b24b51ceb19 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/RunAssetDiscoveryRequest.java @@ -59,7 +59,7 @@ private RunAssetDiscoveryRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -181,10 +181,9 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest other = (com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest) obj; - boolean result = true; - result = result && getParent().equals(other.getParent()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getParent().equals(other.getParent())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -379,35 +378,35 @@ public com.google.cloud.securitycenter.v1beta1.RunAssetDiscoveryRequest buildPar @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -561,7 +560,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarks.java b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarks.java index 5dd7903b8169..e1bde93895e3 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarks.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecurityMarks.java @@ -62,7 +62,7 @@ private SecurityMarks( } case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { marks_ = com.google.protobuf.MapField.newMapField(MarksDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000002; @@ -75,7 +75,7 @@ private SecurityMarks( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -340,11 +340,10 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1beta1.SecurityMarks other = (com.google.cloud.securitycenter.v1beta1.SecurityMarks) obj; - boolean result = true; - result = result && getName().equals(other.getName()); - result = result && internalGetMarks().equals(other.internalGetMarks()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getName().equals(other.getName())) return false; + if (!internalGetMarks().equals(other.internalGetMarks())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -571,35 +570,35 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -954,7 +953,7 @@ public Builder putAllMarks(java.util.Map val @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequest.java index 01ac406c62e9..37aa2780ffa1 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SetFindingStateRequest.java @@ -82,7 +82,7 @@ private SetFindingStateRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -293,15 +293,14 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest other = (com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest) obj; - boolean result = true; - result = result && getName().equals(other.getName()); - result = result && state_ == other.state_; - result = result && (hasStartTime() == other.hasStartTime()); + if (!getName().equals(other.getName())) return false; + if (state_ != other.state_) return false; + if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - result = result && getStartTime().equals(other.getStartTime()); + if (!getStartTime().equals(other.getStartTime())) return false; } - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -516,35 +515,35 @@ public com.google.cloud.securitycenter.v1beta1.SetFindingStateRequest buildParti @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -789,7 +788,7 @@ public Builder clearState() { return this; } - private com.google.protobuf.Timestamp startTime_ = null; + private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, @@ -966,7 +965,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Source.java b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Source.java index 15fad8be8285..fbf4efb3b536 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Source.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/Source.java @@ -77,7 +77,7 @@ private Source( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -325,12 +325,11 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1beta1.Source other = (com.google.cloud.securitycenter.v1beta1.Source) obj; - boolean result = true; - result = result && getName().equals(other.getName()); - result = result && getDisplayName().equals(other.getDisplayName()); - result = result && getDescription().equals(other.getDescription()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -535,35 +534,35 @@ public com.google.cloud.securitycenter.v1beta1.Source buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -978,7 +977,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequest.java index e73a3747fc99..231644cef9d5 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateFindingRequest.java @@ -81,7 +81,7 @@ private UpdateFindingRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -259,17 +259,16 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest other = (com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest) obj; - boolean result = true; - result = result && (hasFinding() == other.hasFinding()); + if (hasFinding() != other.hasFinding()) return false; if (hasFinding()) { - result = result && getFinding().equals(other.getFinding()); + if (!getFinding().equals(other.getFinding())) return false; } - result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - result = result && getUpdateMask().equals(other.getUpdateMask()); + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -489,35 +488,35 @@ public com.google.cloud.securitycenter.v1beta1.UpdateFindingRequest buildPartial @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -570,7 +569,7 @@ public Builder mergeFrom( return this; } - private com.google.cloud.securitycenter.v1beta1.Finding finding_ = null; + private com.google.cloud.securitycenter.v1beta1.Finding finding_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1beta1.Finding, com.google.cloud.securitycenter.v1beta1.Finding.Builder, @@ -788,7 +787,7 @@ public com.google.cloud.securitycenter.v1beta1.FindingOrBuilder getFindingOrBuil return findingBuilder_; } - private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, @@ -978,7 +977,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequest.java index 3ba2296222b9..4d3344319169 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateOrganizationSettingsRequest.java @@ -84,7 +84,7 @@ private UpdateOrganizationSettingsRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -254,17 +254,16 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest other = (com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest) obj; - boolean result = true; - result = result && (hasOrganizationSettings() == other.hasOrganizationSettings()); + if (hasOrganizationSettings() != other.hasOrganizationSettings()) return false; if (hasOrganizationSettings()) { - result = result && getOrganizationSettings().equals(other.getOrganizationSettings()); + if (!getOrganizationSettings().equals(other.getOrganizationSettings())) return false; } - result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - result = result && getUpdateMask().equals(other.getUpdateMask()); + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -490,35 +489,35 @@ public com.google.cloud.securitycenter.v1beta1.UpdateOrganizationSettingsRequest @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -576,8 +575,7 @@ public Builder mergeFrom( return this; } - private com.google.cloud.securitycenter.v1beta1.OrganizationSettings organizationSettings_ = - null; + private com.google.cloud.securitycenter.v1beta1.OrganizationSettings organizationSettings_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1beta1.OrganizationSettings, com.google.cloud.securitycenter.v1beta1.OrganizationSettings.Builder, @@ -773,7 +771,7 @@ public Builder clearOrganizationSettings() { return organizationSettingsBuilder_; } - private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, @@ -954,7 +952,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequest.java index 24f147608de5..51c3e6b9fe63 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSecurityMarksRequest.java @@ -97,7 +97,7 @@ private UpdateSecurityMarksRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -306,21 +306,20 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest other = (com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest) obj; - boolean result = true; - result = result && (hasSecurityMarks() == other.hasSecurityMarks()); + if (hasSecurityMarks() != other.hasSecurityMarks()) return false; if (hasSecurityMarks()) { - result = result && getSecurityMarks().equals(other.getSecurityMarks()); + if (!getSecurityMarks().equals(other.getSecurityMarks())) return false; } - result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - result = result && getUpdateMask().equals(other.getUpdateMask()); + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } - result = result && (hasStartTime() == other.hasStartTime()); + if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - result = result && getStartTime().equals(other.getStartTime()); + if (!getStartTime().equals(other.getStartTime())) return false; } - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -558,35 +557,35 @@ public com.google.cloud.securitycenter.v1beta1.UpdateSecurityMarksRequest buildP @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -645,7 +644,7 @@ public Builder mergeFrom( return this; } - private com.google.cloud.securitycenter.v1beta1.SecurityMarks securityMarks_ = null; + private com.google.cloud.securitycenter.v1beta1.SecurityMarks securityMarks_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1beta1.SecurityMarks, com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder, @@ -828,7 +827,7 @@ public com.google.cloud.securitycenter.v1beta1.SecurityMarks.Builder getSecurity return securityMarksBuilder_; } - private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, @@ -1007,7 +1006,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return updateMaskBuilder_; } - private com.google.protobuf.Timestamp startTime_ = null; + private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, @@ -1184,7 +1183,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequest.java b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequest.java index 41835062a2ab..83464a94a933 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequest.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UpdateSourceRequest.java @@ -81,7 +81,7 @@ private UpdateSourceRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -244,17 +244,16 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest other = (com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest) obj; - boolean result = true; - result = result && (hasSource() == other.hasSource()); + if (hasSource() != other.hasSource()) return false; if (hasSource()) { - result = result && getSource().equals(other.getSource()); + if (!getSource().equals(other.getSource())) return false; } - result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - result = result && getUpdateMask().equals(other.getUpdateMask()); + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -473,35 +472,35 @@ public com.google.cloud.securitycenter.v1beta1.UpdateSourceRequest buildPartial( @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -553,7 +552,7 @@ public Builder mergeFrom( return this; } - private com.google.cloud.securitycenter.v1beta1.Source source_ = null; + private com.google.cloud.securitycenter.v1beta1.Source source_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1beta1.Source, com.google.cloud.securitycenter.v1beta1.Source.Builder, @@ -735,7 +734,7 @@ public com.google.cloud.securitycenter.v1beta1.SourceOrBuilder getSourceOrBuilde return sourceBuilder_; } - private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, @@ -916,7 +915,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/google-cloud-clients/google-cloud-securitycenter/synth.metadata b/google-cloud-clients/google-cloud-securitycenter/synth.metadata index dbcf969f0bf1..19552368ef73 100644 --- a/google-cloud-clients/google-cloud-securitycenter/synth.metadata +++ b/google-cloud-clients/google-cloud-securitycenter/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-03-28T07:54:01.685088Z", + "updateTime": "2019-03-29T07:54:40.589611Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.20", - "dockerImage": "googleapis/artman@sha256:e3c054a2fb85a12481c722af616c7fb6f1d02d862248385eecbec3e4240ebd1e" + "version": "0.16.21", + "dockerImage": "googleapis/artman@sha256:854131ec1af7b3a313253474c24748dc0acd217a58a0b74dbfb559f340a15d78" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "6a84b3267b0a95e922608b9891219075047eee29", - "internalRef": "240640999" + "sha": "37386f1ebcaed51bcb7d15d00124d22c38606e45", + "internalRef": "240841842" } } ],