public Builder mergeFrom(com.google.pubsub.v1.UpdateSubscriptionRequest other) { if (other == com.google.pubsub.v1.UpdateSubscriptionRequest.getDefaultInstance()) return this; if (other.hasSubscription()) { mergeSubscription(other.getSubscription()); } if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public com.google.pubsub.v1.UpdateSubscriptionRequest buildPartial() { com.google.pubsub.v1.UpdateSubscriptionRequest result = new com.google.pubsub.v1.UpdateSubscriptionRequest(this); if (subscriptionBuilder_ == null) { result.subscription_ = subscription_; } else { result.subscription_ = subscriptionBuilder_.build(); } if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { result.updateMask_ = updateMaskBuilder_.build(); } onBuilt(); return result; }
@java.lang.Override public com.google.pubsub.v1.UpdateSubscriptionRequest build() { com.google.pubsub.v1.UpdateSubscriptionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (subscription_ != null) { output.writeMessage(1, getSubscription()); } if (updateMask_ != null) { output.writeMessage(2, 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.pubsub.v1.UpdateSubscriptionRequest)) { return super.equals(obj); } com.google.pubsub.v1.UpdateSubscriptionRequest other = (com.google.pubsub.v1.UpdateSubscriptionRequest) obj; boolean result = true; result = result && (hasSubscription() == other.hasSubscription()); if (hasSubscription()) { result = result && getSubscription().equals(other.getSubscription()); } result = result && (hasUpdateMask() == other.hasUpdateMask()); if (hasUpdateMask()) { result = result && getUpdateMask().equals(other.getUpdateMask()); } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public com.google.pubsub.v1.UpdateSubscriptionRequest getDefaultInstanceForType() { return com.google.pubsub.v1.UpdateSubscriptionRequest.getDefaultInstance(); }
if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
/** * * * <pre> * The updated subscription object. * </pre> * * <code>.google.pubsub.v1.Subscription subscription = 1;</code> */ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { return getSubscription(); }
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
/** * * * <pre> * Indicates which fields in the provided subscription to update. * Must be specified and non-empty. * </pre> * * <code>.google.protobuf.FieldMask update_mask = 2;</code> */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return getUpdateMask(); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (subscription_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSubscription()); } if (updateMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
.setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.pubsub.v1.UpdateSubscriptionRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller(
if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
/** * * * <pre> * The updated subscription object. * </pre> * * <code>.google.pubsub.v1.Subscription subscription = 1;</code> */ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { return getSubscription(); }
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
/** * * * <pre> * Indicates which fields in the provided subscription to update. * Must be specified and non-empty. * </pre> * * <code>.google.protobuf.FieldMask update_mask = 2;</code> */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return getUpdateMask(); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (subscription_ != null) { output.writeMessage(1, getSubscription()); } if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } unknownFields.writeTo(output); }
@java.lang.Override public com.google.pubsub.v1.UpdateSubscriptionRequest getDefaultInstanceForType() { return com.google.pubsub.v1.UpdateSubscriptionRequest.getDefaultInstance(); }
@java.lang.Override public com.google.pubsub.v1.UpdateSubscriptionRequest build() { com.google.pubsub.v1.UpdateSubscriptionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
@java.lang.Override public com.google.pubsub.v1.UpdateSubscriptionRequest buildPartial() { com.google.pubsub.v1.UpdateSubscriptionRequest result = new com.google.pubsub.v1.UpdateSubscriptionRequest(this); if (subscriptionBuilder_ == null) { result.subscription_ = subscription_; } else { result.subscription_ = subscriptionBuilder_.build(); } if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { result.updateMask_ = updateMaskBuilder_.build(); } onBuilt(); return result; }