@java.lang.Override public com.google.pubsub.v1.Topic getDefaultInstanceForType() { return com.google.pubsub.v1.Topic.getDefaultInstance(); }
/** * * * <pre> * The updated topic object. * </pre> * * <code>.google.pubsub.v1.Topic topic = 1;</code> */ public com.google.pubsub.v1.Topic getTopic() { return topic_ == null ? com.google.pubsub.v1.Topic.getDefaultInstance() : topic_; } /**
/** * * * <pre> * The updated topic object. * </pre> * * <code>.google.pubsub.v1.Topic topic = 1;</code> */ public com.google.pubsub.v1.Topic getTopic() { if (topicBuilder_ == null) { return topic_ == null ? com.google.pubsub.v1.Topic.getDefaultInstance() : topic_; } else { return topicBuilder_.getMessage(); } } /**
/** * * * <pre> * The updated topic object. * </pre> * * <code>.google.pubsub.v1.Topic topic = 1;</code> */ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { if (topicBuilder_ != null) { return topicBuilder_.getMessageOrBuilder(); } else { return topic_ == null ? com.google.pubsub.v1.Topic.getDefaultInstance() : topic_; } } /**
/** * * * <pre> * The resulting topics. * </pre> * * <code>repeated .google.pubsub.v1.Topic topics = 1;</code> */ public com.google.pubsub.v1.Topic.Builder addTopicsBuilder() { return getTopicsFieldBuilder().addBuilder(com.google.pubsub.v1.Topic.getDefaultInstance()); } /**
/** * * * <pre> * The resulting topics. * </pre> * * <code>repeated .google.pubsub.v1.Topic topics = 1;</code> */ public com.google.pubsub.v1.Topic.Builder addTopicsBuilder(int index) { return getTopicsFieldBuilder() .addBuilder(index, com.google.pubsub.v1.Topic.getDefaultInstance()); } /**
/** * * * <pre> * The name of the topic. It must have the format * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, * and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), * underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent * signs (`%`). It must be between 3 and 255 characters in length, and it * must not start with `"goog"`. * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
public Builder mergeFrom(com.google.pubsub.v1.Topic other) { if (other == com.google.pubsub.v1.Topic.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.hasMessageStoragePolicy()) { mergeMessageStoragePolicy(other.getMessageStoragePolicy()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
private static io.grpc.MethodDescriptor<com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic> getCreateTopicMethodHelper() { io.grpc.MethodDescriptor<com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic> getCreateTopicMethod; if ((getCreateTopicMethod = PublisherGrpc.getCreateTopicMethod) == null) { synchronized (PublisherGrpc.class) { if ((getCreateTopicMethod = PublisherGrpc.getCreateTopicMethod) == null) { PublisherGrpc.getCreateTopicMethod = getCreateTopicMethod = io.grpc.MethodDescriptor .<com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName("google.pubsub.v1.Publisher", "CreateTopic")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.pubsub.v1.Topic.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.pubsub.v1.Topic.getDefaultInstance())) .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("CreateTopic")) .build(); } } } return getCreateTopicMethod; }
private static io.grpc.MethodDescriptor< com.google.pubsub.v1.GetTopicRequest, com.google.pubsub.v1.Topic> getGetTopicMethodHelper() { io.grpc.MethodDescriptor<com.google.pubsub.v1.GetTopicRequest, com.google.pubsub.v1.Topic> getGetTopicMethod; if ((getGetTopicMethod = PublisherGrpc.getGetTopicMethod) == null) { synchronized (PublisherGrpc.class) { if ((getGetTopicMethod = PublisherGrpc.getGetTopicMethod) == null) { PublisherGrpc.getGetTopicMethod = getGetTopicMethod = io.grpc.MethodDescriptor .<com.google.pubsub.v1.GetTopicRequest, com.google.pubsub.v1.Topic> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName("google.pubsub.v1.Publisher", "GetTopic")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.pubsub.v1.GetTopicRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.pubsub.v1.Topic.getDefaultInstance())) .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("GetTopic")) .build(); } } } return getGetTopicMethod; }
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; }
/** * * * <pre> * The updated topic object. * </pre> * * <code>.google.pubsub.v1.Topic topic = 1;</code> */ public com.google.pubsub.v1.Topic getTopic() { return topic_ == null ? com.google.pubsub.v1.Topic.getDefaultInstance() : topic_; } /**
@java.lang.Override public com.google.pubsub.v1.Topic getDefaultInstanceForType() { return com.google.pubsub.v1.Topic.getDefaultInstance(); }
/** * <pre> * The resulting topics. * </pre> * * <code>repeated .google.pubsub.v1.Topic topics = 1;</code> */ public com.google.pubsub.v1.Topic.Builder addTopicsBuilder() { return getTopicsFieldBuilder().addBuilder( com.google.pubsub.v1.Topic.getDefaultInstance()); } /**
/** * <code>repeated .google.pubsub.v1.Topic topics = 1;</code> * * <pre> * The resulting topics. * </pre> */ public com.google.pubsub.v1.Topic.Builder addTopicsBuilder() { return getTopicsFieldBuilder().addBuilder( com.google.pubsub.v1.Topic.getDefaultInstance()); } /**
/** * * * <pre> * The resulting topics. * </pre> * * <code>repeated .google.pubsub.v1.Topic topics = 1;</code> */ public com.google.pubsub.v1.Topic.Builder addTopicsBuilder() { return getTopicsFieldBuilder().addBuilder(com.google.pubsub.v1.Topic.getDefaultInstance()); } /**
/** * <pre> * The resulting topics. * </pre> * * <code>repeated .google.pubsub.v1.Topic topics = 1;</code> */ public com.google.pubsub.v1.Topic.Builder addTopicsBuilder( int index) { return getTopicsFieldBuilder().addBuilder( index, com.google.pubsub.v1.Topic.getDefaultInstance()); } /**
public Builder mergeFrom(com.google.pubsub.v1.Topic other) { if (other == com.google.pubsub.v1.Topic.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } onChanged(); return this; }
public Builder mergeFrom(com.google.pubsub.v1.Topic other) { if (other == com.google.pubsub.v1.Topic.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } onChanged(); return this; }
public Builder mergeFrom(com.google.pubsub.v1.Topic other) { if (other == com.google.pubsub.v1.Topic.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.hasMessageStoragePolicy()) { mergeMessageStoragePolicy(other.getMessageStoragePolicy()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }