Class ValidateSchemaRequest.Builder

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

public static final class ValidateSchemaRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ValidateSchemaRequest.Builder> implements ValidateSchemaRequestOrBuilder
 Request for the `ValidateSchema` method.
 
Protobuf type google.pubsub.v1.ValidateSchemaRequest
  • 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<ValidateSchemaRequest.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<ValidateSchemaRequest.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<ValidateSchemaRequest.Builder>
    • getDefaultInstanceForType

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

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

      public ValidateSchemaRequest 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<ValidateSchemaRequest.Builder>
    • setField

      public ValidateSchemaRequest.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<ValidateSchemaRequest.Builder>
    • clearField

      public ValidateSchemaRequest.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<ValidateSchemaRequest.Builder>
    • clearOneof

      public ValidateSchemaRequest.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<ValidateSchemaRequest.Builder>
    • setRepeatedField

      public ValidateSchemaRequest.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<ValidateSchemaRequest.Builder>
    • addRepeatedField

      public ValidateSchemaRequest.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<ValidateSchemaRequest.Builder>
    • mergeFrom

      public ValidateSchemaRequest.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<ValidateSchemaRequest.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<ValidateSchemaRequest.Builder>
    • mergeFrom

      public ValidateSchemaRequest.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<ValidateSchemaRequest.Builder>
      Throws:
      IOException
    • 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 ValidateSchemaRequestOrBuilder
      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 ValidateSchemaRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public ValidateSchemaRequest.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 ValidateSchemaRequest.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 ValidateSchemaRequest.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.
    • hasSchema

      public boolean hasSchema()
       Required. The schema object to validate.
       
      .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasSchema in interface ValidateSchemaRequestOrBuilder
      Returns:
      Whether the schema field is set.
    • getSchema

      public Schema getSchema()
       Required. The schema object to validate.
       
      .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSchema in interface ValidateSchemaRequestOrBuilder
      Returns:
      The schema.
    • setSchema

      public ValidateSchemaRequest.Builder setSchema(Schema value)
       Required. The schema object to validate.
       
      .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
    • setSchema

      public ValidateSchemaRequest.Builder setSchema(Schema.Builder builderForValue)
       Required. The schema object to validate.
       
      .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeSchema

      public ValidateSchemaRequest.Builder mergeSchema(Schema value)
       Required. The schema object to validate.
       
      .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearSchema

      public ValidateSchemaRequest.Builder clearSchema()
       Required. The schema object to validate.
       
      .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
    • getSchemaBuilder

      public Schema.Builder getSchemaBuilder()
       Required. The schema object to validate.
       
      .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
    • getSchemaOrBuilder

      public SchemaOrBuilder getSchemaOrBuilder()
       Required. The schema object to validate.
       
      .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSchemaOrBuilder in interface ValidateSchemaRequestOrBuilder
    • setUnknownFields

      public final ValidateSchemaRequest.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<ValidateSchemaRequest.Builder>
    • mergeUnknownFields

      public final ValidateSchemaRequest.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<ValidateSchemaRequest.Builder>