public Builder mergeFrom(com.google.logging.v2.UpdateExclusionRequest other) { if (other == com.google.logging.v2.UpdateExclusionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.hasExclusion()) { mergeExclusion(other.getExclusion()); } if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (exclusion_ != null) { output.writeMessage(2, getExclusion()); } if (updateMask_ != null) { output.writeMessage(3, getUpdateMask()); } unknownFields.writeTo(output); }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.logging.v2.UpdateExclusionRequest)) { return super.equals(obj); } com.google.logging.v2.UpdateExclusionRequest other = (com.google.logging.v2.UpdateExclusionRequest) obj; boolean result = true; result = result && getName().equals(other.getName()); result = result && (hasExclusion() == other.hasExclusion()); if (hasExclusion()) { result = result && getExclusion().equals(other.getExclusion()); } result = result && (hasUpdateMask() == other.hasUpdateMask()); if (hasUpdateMask()) { result = result && getUpdateMask().equals(other.getUpdateMask()); } result = result && unknownFields.equals(other.unknownFields); return result; }
/** * * * <pre> * Required. The resource name of the exclusion to update: * "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
UpdateExclusionRequest actualRequest = (UpdateExclusionRequest) actualRequests.get(0); Assert.assertEquals(name, ExclusionNames.parse(actualRequest.getName())); Assert.assertEquals(exclusion, actualRequest.getExclusion()); Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent(
@java.lang.Override public com.google.logging.v2.UpdateExclusionRequest getDefaultInstanceForType() { return com.google.logging.v2.UpdateExclusionRequest.getDefaultInstance(); }
/** * * * <pre> * Required. New values for the existing exclusion. Only the fields specified * in `update_mask` are relevant. * </pre> * * <code>.google.logging.v2.LogExclusion exclusion = 2;</code> */ public com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder() { return getExclusion(); }
/** * * * <pre> * Required. A nonempty list of fields to change in the existing exclusion. * New values for the fields are taken from the corresponding fields in the * [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not mentioned in * `update_mask` are not changed and are ignored in the request. * For example, to change the filter and description of an exclusion, * specify an `update_mask` of `"filter,description"`. * </pre> * * <code>.google.protobuf.FieldMask update_mask = 3;</code> */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return getUpdateMask(); }
@java.lang.Override public com.google.logging.v2.UpdateExclusionRequest buildPartial() { com.google.logging.v2.UpdateExclusionRequest result = new com.google.logging.v2.UpdateExclusionRequest(this); result.name_ = name_; if (exclusionBuilder_ == null) { result.exclusion_ = exclusion_; } else { result.exclusion_ = exclusionBuilder_.build(); } if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { result.updateMask_ = updateMaskBuilder_.build(); } onBuilt(); return result; }
.setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.logging.v2.UpdateExclusionRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller(
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasExclusion()) { hash = (37 * hash) + EXCLUSION_FIELD_NUMBER; hash = (53 * hash) + getExclusion().hashCode(); } if (hasUpdateMask()) { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (exclusion_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExclusion()); } if (updateMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
UpdateExclusionRequest.newBuilder() .setName(name == null ? null : name.toString()) .setExclusion(exclusion)
.setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.logging.v2.UpdateExclusionRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller(
UpdateExclusionRequest.newBuilder() .setName(name) .setExclusion(exclusion)
UpdateExclusionRequest.newBuilder() .setName(name == null ? null : name.toString()) .setExclusion(exclusion)
UpdateExclusionRequest.newBuilder() .setName(name) .setExclusion(exclusion)