Tabnine Logo
PublishRequest.getTopicBytes
Code IndexAdd Tabnine to your IDE (free)

How to use
getTopicBytes
method
in
com.google.pubsub.v1.PublishRequest

Best Java code snippets using com.google.pubsub.v1.PublishRequest.getTopicBytes (Showing top 8 results out of 315)

origin: googleapis/google-cloud-java

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
 if (!getTopicBytes().isEmpty()) {
  com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_);
 }
 for (int i = 0; i < messages_.size(); i++) {
  output.writeMessage(2, messages_.get(i));
 }
 unknownFields.writeTo(output);
}
origin: googleapis/google-cloud-java

@java.lang.Override
public int getSerializedSize() {
 int size = memoizedSize;
 if (size != -1) return size;
 size = 0;
 if (!getTopicBytes().isEmpty()) {
  size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_);
 }
 for (int i = 0; i < messages_.size(); i++) {
  size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, messages_.get(i));
 }
 size += unknownFields.getSerializedSize();
 memoizedSize = size;
 return size;
}
origin: com.google.api.grpc/grpc-google-pubsub-v1

public void writeTo(com.google.protobuf.CodedOutputStream output)
          throws java.io.IOException {
 if (!getTopicBytes().isEmpty()) {
  com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_);
 }
 for (int i = 0; i < messages_.size(); i++) {
  output.writeMessage(2, messages_.get(i));
 }
}
origin: com.google.api.grpc/proto-google-cloud-pubsub-v1

@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
 if (!getTopicBytes().isEmpty()) {
  com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_);
 }
 for (int i = 0; i < messages_.size(); i++) {
  output.writeMessage(2, messages_.get(i));
 }
 unknownFields.writeTo(output);
}
origin: com.google.api.grpc/grpc-google-pubsub-v1

public int getSerializedSize() {
 int size = memoizedSize;
 if (size != -1) return size;
 size = 0;
 if (!getTopicBytes().isEmpty()) {
  size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_);
 }
 for (int i = 0; i < messages_.size(); i++) {
  size += com.google.protobuf.CodedOutputStream
   .computeMessageSize(2, messages_.get(i));
 }
 memoizedSize = size;
 return size;
}
origin: com.google.api.grpc/proto-google-cloud-pubsub-v1

@java.lang.Override
public int getSerializedSize() {
 int size = memoizedSize;
 if (size != -1) return size;
 size = 0;
 if (!getTopicBytes().isEmpty()) {
  size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_);
 }
 for (int i = 0; i < messages_.size(); i++) {
  size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, messages_.get(i));
 }
 size += unknownFields.getSerializedSize();
 memoizedSize = size;
 return size;
}
origin: com.google.api.grpc/grpc-pubsub-v1

public void writeTo(com.google.protobuf.CodedOutputStream output)
          throws java.io.IOException {
 if (!getTopicBytes().isEmpty()) {
  com.google.protobuf.GeneratedMessage.writeString(output, 1, topic_);
 }
 for (int i = 0; i < messages_.size(); i++) {
  output.writeMessage(2, messages_.get(i));
 }
}
origin: com.google.api.grpc/grpc-pubsub-v1

public int getSerializedSize() {
 int size = memoizedSize;
 if (size != -1) return size;
 size = 0;
 if (!getTopicBytes().isEmpty()) {
  size += com.google.protobuf.GeneratedMessage.computeStringSize(1, topic_);
 }
 for (int i = 0; i < messages_.size(); i++) {
  size += com.google.protobuf.CodedOutputStream
   .computeMessageSize(2, messages_.get(i));
 }
 memoizedSize = size;
 return size;
}
com.google.pubsub.v1PublishRequestgetTopicBytes

Javadoc

 
The messages in the request will be published on this topic. 
Format is `projects/{project}/topics/{topic}`. 
string topic = 1;

Popular methods of PublishRequest

  • newBuilder
  • getTopic
    The messages in the request will be published on this topic. optional string topic = 1;
  • getDefaultInstance
  • getMessagesCount
    The messages to publish. repeated .google.pubsub.v1.PubsubMessage messages = 2;
  • <init>
  • getMessagesList
    The messages to publish. repeated .google.pubsub.v1.PubsubMessage messages = 2;
  • isInitialized
  • makeExtensionsImmutable
  • toBuilder
  • getDescriptor
  • getDescriptorForType
  • getSerializedSize
  • getDescriptorForType,
  • getSerializedSize,
  • parseUnknownFieldProto3

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSharedPreferences (Context)
  • getApplicationContext (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now