Class ValidateMessageRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
com.google.pubsub.v1.ValidateMessageRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ValidateMessageRequestOrBuilder, Cloneable
Enclosing class:
ValidateMessageRequest

public static final class ValidateMessageRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder> implements ValidateMessageRequestOrBuilder
 Request for the `ValidateMessage` method.
 
Protobuf type google.pubsub.v1.ValidateMessageRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
    • getDefaultInstanceForType

      public ValidateMessageRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ValidateMessageRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ValidateMessageRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
    • setField

      public ValidateMessageRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
    • clearField

      public ValidateMessageRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
    • clearOneof

      public ValidateMessageRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
    • setRepeatedField

      public ValidateMessageRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
    • addRepeatedField

      public ValidateMessageRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
    • mergeFrom

      public ValidateMessageRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ValidateMessageRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
    • mergeFrom

      public ValidateMessageRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ValidateMessageRequest.Builder>
      Throws:
      IOException
    • getSchemaSpecCase

      public ValidateMessageRequest.SchemaSpecCase getSchemaSpecCase()
      Specified by:
      getSchemaSpecCase in interface ValidateMessageRequestOrBuilder
    • clearSchemaSpec

      public ValidateMessageRequest.Builder clearSchemaSpec()
    • getParent

      public String getParent()
       Required. The name of the project in which to validate schemas.
       Format is `projects/{project-id}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface ValidateMessageRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The name of the project in which to validate schemas.
       Format is `projects/{project-id}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface ValidateMessageRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public ValidateMessageRequest.Builder setParent(String value)
       Required. The name of the project in which to validate schemas.
       Format is `projects/{project-id}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public ValidateMessageRequest.Builder clearParent()
       Required. The name of the project in which to validate schemas.
       Format is `projects/{project-id}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public ValidateMessageRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The name of the project in which to validate schemas.
       Format is `projects/{project-id}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasName

      public boolean hasName()
       Name of the schema against which to validate.
      
       Format is `projects/{project}/schemas/{schema}`.
       
      string name = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      hasName in interface ValidateMessageRequestOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Name of the schema against which to validate.
      
       Format is `projects/{project}/schemas/{schema}`.
       
      string name = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface ValidateMessageRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name of the schema against which to validate.
      
       Format is `projects/{project}/schemas/{schema}`.
       
      string name = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface ValidateMessageRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ValidateMessageRequest.Builder setName(String value)
       Name of the schema against which to validate.
      
       Format is `projects/{project}/schemas/{schema}`.
       
      string name = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ValidateMessageRequest.Builder clearName()
       Name of the schema against which to validate.
      
       Format is `projects/{project}/schemas/{schema}`.
       
      string name = 2 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public ValidateMessageRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Name of the schema against which to validate.
      
       Format is `projects/{project}/schemas/{schema}`.
       
      string name = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasSchema

      public boolean hasSchema()
       Ad-hoc schema against which to validate
       
      .google.pubsub.v1.Schema schema = 3;
      Specified by:
      hasSchema in interface ValidateMessageRequestOrBuilder
      Returns:
      Whether the schema field is set.
    • getSchema

      public Schema getSchema()
       Ad-hoc schema against which to validate
       
      .google.pubsub.v1.Schema schema = 3;
      Specified by:
      getSchema in interface ValidateMessageRequestOrBuilder
      Returns:
      The schema.
    • setSchema

      public ValidateMessageRequest.Builder setSchema(Schema value)
       Ad-hoc schema against which to validate
       
      .google.pubsub.v1.Schema schema = 3;
    • setSchema

      public ValidateMessageRequest.Builder setSchema(Schema.Builder builderForValue)
       Ad-hoc schema against which to validate
       
      .google.pubsub.v1.Schema schema = 3;
    • mergeSchema

      public ValidateMessageRequest.Builder mergeSchema(Schema value)
       Ad-hoc schema against which to validate
       
      .google.pubsub.v1.Schema schema = 3;
    • clearSchema

      public ValidateMessageRequest.Builder clearSchema()
       Ad-hoc schema against which to validate
       
      .google.pubsub.v1.Schema schema = 3;
    • getSchemaBuilder

      public Schema.Builder getSchemaBuilder()
       Ad-hoc schema against which to validate
       
      .google.pubsub.v1.Schema schema = 3;
    • getSchemaOrBuilder

      public SchemaOrBuilder getSchemaOrBuilder()
       Ad-hoc schema against which to validate
       
      .google.pubsub.v1.Schema schema = 3;
      Specified by:
      getSchemaOrBuilder in interface ValidateMessageRequestOrBuilder
    • getMessage

      public com.google.protobuf.ByteString getMessage()
       Message to validate against the provided `schema_spec`.
       
      bytes message = 4;
      Specified by:
      getMessage in interface ValidateMessageRequestOrBuilder
      Returns:
      The message.
    • setMessage

      public ValidateMessageRequest.Builder setMessage(com.google.protobuf.ByteString value)
       Message to validate against the provided `schema_spec`.
       
      bytes message = 4;
      Parameters:
      value - The message to set.
      Returns:
      This builder for chaining.
    • clearMessage

      public ValidateMessageRequest.Builder clearMessage()
       Message to validate against the provided `schema_spec`.
       
      bytes message = 4;
      Returns:
      This builder for chaining.
    • getEncodingValue

      public int getEncodingValue()
       The encoding expected for messages
       
      .google.pubsub.v1.Encoding encoding = 5;
      Specified by:
      getEncodingValue in interface ValidateMessageRequestOrBuilder
      Returns:
      The enum numeric value on the wire for encoding.
    • setEncodingValue

      public ValidateMessageRequest.Builder setEncodingValue(int value)
       The encoding expected for messages
       
      .google.pubsub.v1.Encoding encoding = 5;
      Parameters:
      value - The enum numeric value on the wire for encoding to set.
      Returns:
      This builder for chaining.
    • getEncoding

      public Encoding getEncoding()
       The encoding expected for messages
       
      .google.pubsub.v1.Encoding encoding = 5;
      Specified by:
      getEncoding in interface ValidateMessageRequestOrBuilder
      Returns:
      The encoding.
    • setEncoding

      public ValidateMessageRequest.Builder setEncoding(Encoding value)
       The encoding expected for messages
       
      .google.pubsub.v1.Encoding encoding = 5;
      Parameters:
      value - The encoding to set.
      Returns:
      This builder for chaining.
    • clearEncoding

      public ValidateMessageRequest.Builder clearEncoding()
       The encoding expected for messages
       
      .google.pubsub.v1.Encoding encoding = 5;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final ValidateMessageRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>
    • mergeUnknownFields

      public final ValidateMessageRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ValidateMessageRequest.Builder>