public Builder mergeFrom(com.google.pubsub.v1.UpdateTopicRequest other) { if (other == com.google.pubsub.v1.UpdateTopicRequest.getDefaultInstance()) return this; if (other.hasTopic()) { mergeTopic(other.getTopic()); } if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public com.google.pubsub.v1.UpdateTopicRequest buildPartial() { com.google.pubsub.v1.UpdateTopicRequest result = new com.google.pubsub.v1.UpdateTopicRequest(this); if (topicBuilder_ == null) { result.topic_ = topic_; } else { result.topic_ = topicBuilder_.build(); } if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { result.updateMask_ = updateMaskBuilder_.build(); } onBuilt(); return result; }
@java.lang.Override public com.google.pubsub.v1.UpdateTopicRequest build() { com.google.pubsub.v1.UpdateTopicRequest 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 (topic_ != null) { output.writeMessage(1, getTopic()); } 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.UpdateTopicRequest)) { return super.equals(obj); } com.google.pubsub.v1.UpdateTopicRequest other = (com.google.pubsub.v1.UpdateTopicRequest) obj; boolean result = true; result = result && (hasTopic() == other.hasTopic()); if (hasTopic()) { result = result && getTopic().equals(other.getTopic()); } 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.UpdateTopicRequest getDefaultInstanceForType() { return com.google.pubsub.v1.UpdateTopicRequest.getDefaultInstance(); }
if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
/** * * * <pre> * The updated topic object. * </pre> * * <code>.google.pubsub.v1.Topic topic = 1;</code> */ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { return getTopic(); }
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
/** * * * <pre> * Indicates which fields in the provided topic to update. Must be specified * and non-empty. Note that if `update_mask` contains * "message_storage_policy" then the new value will be determined based on the * policy configured at the project or organization level. The * `message_storage_policy` must not be set in the `topic` provided above. * </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 (topic_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTopic()); } if (updateMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
private static io.grpc.MethodDescriptor< com.google.pubsub.v1.UpdateTopicRequest, com.google.pubsub.v1.Topic> getUpdateTopicMethodHelper() { io.grpc.MethodDescriptor<com.google.pubsub.v1.UpdateTopicRequest, com.google.pubsub.v1.Topic> getUpdateTopicMethod; if ((getUpdateTopicMethod = PublisherGrpc.getUpdateTopicMethod) == null) { synchronized (PublisherGrpc.class) { if ((getUpdateTopicMethod = PublisherGrpc.getUpdateTopicMethod) == null) { PublisherGrpc.getUpdateTopicMethod = getUpdateTopicMethod = io.grpc.MethodDescriptor .<com.google.pubsub.v1.UpdateTopicRequest, com.google.pubsub.v1.Topic> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName("google.pubsub.v1.Publisher", "UpdateTopic")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.pubsub.v1.UpdateTopicRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.pubsub.v1.Topic.getDefaultInstance())) .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("UpdateTopic")) .build(); } } } return getUpdateTopicMethod; }
if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
/** * * * <pre> * The updated topic object. * </pre> * * <code>.google.pubsub.v1.Topic topic = 1;</code> */ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { return getTopic(); }
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
/** * * * <pre> * Indicates which fields in the provided topic to update. Must be specified * and non-empty. Note that if `update_mask` contains * "message_storage_policy" then the new value will be determined based on the * policy configured at the project or organization level. The * `message_storage_policy` must not be set in the `topic` provided above. * </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 (topic_ != null) { output.writeMessage(1, getTopic()); } if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } unknownFields.writeTo(output); }
@java.lang.Override public com.google.pubsub.v1.UpdateTopicRequest getDefaultInstanceForType() { return com.google.pubsub.v1.UpdateTopicRequest.getDefaultInstance(); }
@java.lang.Override public com.google.pubsub.v1.UpdateTopicRequest build() { com.google.pubsub.v1.UpdateTopicRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
@java.lang.Override public com.google.pubsub.v1.UpdateTopicRequest buildPartial() { com.google.pubsub.v1.UpdateTopicRequest result = new com.google.pubsub.v1.UpdateTopicRequest(this); if (topicBuilder_ == null) { result.topic_ = topic_; } else { result.topic_ = topicBuilder_.build(); } if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { result.updateMask_ = updateMaskBuilder_.build(); } onBuilt(); return result; }