Class RagDataSchema.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RagDataSchema.Builder>
com.google.cloud.aiplatform.v1beta1.RagDataSchema.Builder
All Implemented Interfaces:
RagDataSchemaOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RagDataSchema

public static final class RagDataSchema.Builder extends com.google.protobuf.GeneratedMessage.Builder<RagDataSchema.Builder> implements RagDataSchemaOrBuilder
 The schema of the user specified metadata.
 
Protobuf type google.cloud.aiplatform.v1beta1.RagDataSchema
  • Method Details

    • getDescriptor

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

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

      public RagDataSchema.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.GeneratedMessage.Builder<RagDataSchema.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.GeneratedMessage.Builder<RagDataSchema.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public RagDataSchema.Builder mergeFrom(RagDataSchema other)
    • isInitialized

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

      public RagDataSchema.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<RagDataSchema.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Identifier. Resource name of the data schema in the form of:
       `projects/{project_number}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema}`
       where the {rag_data_schema} part should be the same as the `key` field
       below.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface RagDataSchemaOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Resource name of the data schema in the form of:
       `projects/{project_number}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema}`
       where the {rag_data_schema} part should be the same as the `key` field
       below.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface RagDataSchemaOrBuilder
      Returns:
      The bytes for name.
    • setName

      public RagDataSchema.Builder setName(String value)
       Identifier. Resource name of the data schema in the form of:
       `projects/{project_number}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema}`
       where the {rag_data_schema} part should be the same as the `key` field
       below.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public RagDataSchema.Builder clearName()
       Identifier. Resource name of the data schema in the form of:
       `projects/{project_number}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema}`
       where the {rag_data_schema} part should be the same as the `key` field
       below.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public RagDataSchema.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. Resource name of the data schema in the form of:
       `projects/{project_number}/locations/{location}/ragCorpora/{rag_corpus}/ragDataSchemas/{rag_data_schema}`
       where the {rag_data_schema} part should be the same as the `key` field
       below.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getKey

      public String getKey()
       Required. The key of this data schema. This key should be matching the key
       of user specified metadata and unique inside corpus. This value can be up
       to 63 characters, and valid characters are /[a-z][0-9]-/. The first
       character must be a letter, the last could be a letter or a number.
       
      string key = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getKey in interface RagDataSchemaOrBuilder
      Returns:
      The key.
    • getKeyBytes

      public com.google.protobuf.ByteString getKeyBytes()
       Required. The key of this data schema. This key should be matching the key
       of user specified metadata and unique inside corpus. This value can be up
       to 63 characters, and valid characters are /[a-z][0-9]-/. The first
       character must be a letter, the last could be a letter or a number.
       
      string key = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getKeyBytes in interface RagDataSchemaOrBuilder
      Returns:
      The bytes for key.
    • setKey

      public RagDataSchema.Builder setKey(String value)
       Required. The key of this data schema. This key should be matching the key
       of user specified metadata and unique inside corpus. This value can be up
       to 63 characters, and valid characters are /[a-z][0-9]-/. The first
       character must be a letter, the last could be a letter or a number.
       
      string key = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The key to set.
      Returns:
      This builder for chaining.
    • clearKey

      public RagDataSchema.Builder clearKey()
       Required. The key of this data schema. This key should be matching the key
       of user specified metadata and unique inside corpus. This value can be up
       to 63 characters, and valid characters are /[a-z][0-9]-/. The first
       character must be a letter, the last could be a letter or a number.
       
      string key = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setKeyBytes

      public RagDataSchema.Builder setKeyBytes(com.google.protobuf.ByteString value)
       Required. The key of this data schema. This key should be matching the key
       of user specified metadata and unique inside corpus. This value can be up
       to 63 characters, and valid characters are /[a-z][0-9]-/. The first
       character must be a letter, the last could be a letter or a number.
       
      string key = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for key to set.
      Returns:
      This builder for chaining.
    • hasSchemaDetails

      public boolean hasSchemaDetails()
       The schema details mapping to the key.
       
      .google.cloud.aiplatform.v1beta1.RagMetadataSchemaDetails schema_details = 3;
      Specified by:
      hasSchemaDetails in interface RagDataSchemaOrBuilder
      Returns:
      Whether the schemaDetails field is set.
    • getSchemaDetails

      public RagMetadataSchemaDetails getSchemaDetails()
       The schema details mapping to the key.
       
      .google.cloud.aiplatform.v1beta1.RagMetadataSchemaDetails schema_details = 3;
      Specified by:
      getSchemaDetails in interface RagDataSchemaOrBuilder
      Returns:
      The schemaDetails.
    • setSchemaDetails

      public RagDataSchema.Builder setSchemaDetails(RagMetadataSchemaDetails value)
       The schema details mapping to the key.
       
      .google.cloud.aiplatform.v1beta1.RagMetadataSchemaDetails schema_details = 3;
    • setSchemaDetails

      public RagDataSchema.Builder setSchemaDetails(RagMetadataSchemaDetails.Builder builderForValue)
       The schema details mapping to the key.
       
      .google.cloud.aiplatform.v1beta1.RagMetadataSchemaDetails schema_details = 3;
    • mergeSchemaDetails

      public RagDataSchema.Builder mergeSchemaDetails(RagMetadataSchemaDetails value)
       The schema details mapping to the key.
       
      .google.cloud.aiplatform.v1beta1.RagMetadataSchemaDetails schema_details = 3;
    • clearSchemaDetails

      public RagDataSchema.Builder clearSchemaDetails()
       The schema details mapping to the key.
       
      .google.cloud.aiplatform.v1beta1.RagMetadataSchemaDetails schema_details = 3;
    • getSchemaDetailsBuilder

      public RagMetadataSchemaDetails.Builder getSchemaDetailsBuilder()
       The schema details mapping to the key.
       
      .google.cloud.aiplatform.v1beta1.RagMetadataSchemaDetails schema_details = 3;
    • getSchemaDetailsOrBuilder

      public RagMetadataSchemaDetailsOrBuilder getSchemaDetailsOrBuilder()
       The schema details mapping to the key.
       
      .google.cloud.aiplatform.v1beta1.RagMetadataSchemaDetails schema_details = 3;
      Specified by:
      getSchemaDetailsOrBuilder in interface RagDataSchemaOrBuilder