Class UserSpecifiedMetadata.Builder

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

public static final class UserSpecifiedMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<UserSpecifiedMetadata.Builder> implements UserSpecifiedMetadataOrBuilder
 Metadata provided by users.
 
Protobuf type google.cloud.aiplatform.v1beta1.UserSpecifiedMetadata
  • 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<UserSpecifiedMetadata.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<UserSpecifiedMetadata.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<UserSpecifiedMetadata.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public UserSpecifiedMetadata.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<UserSpecifiedMetadata.Builder>
      Throws:
      IOException
    • getKey

      public String getKey()
       Required. Key of the metadata. The key must be set with type by
       CreateRagDataSchema.
       
      string key = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getKey in interface UserSpecifiedMetadataOrBuilder
      Returns:
      The key.
    • getKeyBytes

      public com.google.protobuf.ByteString getKeyBytes()
       Required. Key of the metadata. The key must be set with type by
       CreateRagDataSchema.
       
      string key = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getKeyBytes in interface UserSpecifiedMetadataOrBuilder
      Returns:
      The bytes for key.
    • setKey

      public UserSpecifiedMetadata.Builder setKey(String value)
       Required. Key of the metadata. The key must be set with type by
       CreateRagDataSchema.
       
      string key = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The key to set.
      Returns:
      This builder for chaining.
    • clearKey

      public UserSpecifiedMetadata.Builder clearKey()
       Required. Key of the metadata. The key must be set with type by
       CreateRagDataSchema.
       
      string key = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setKeyBytes

      public UserSpecifiedMetadata.Builder setKeyBytes(com.google.protobuf.ByteString value)
       Required. Key of the metadata. The key must be set with type by
       CreateRagDataSchema.
       
      string key = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for key to set.
      Returns:
      This builder for chaining.
    • hasValue

      public boolean hasValue()
       Value of the metadata. The value must be able to convert
       to the type according to the data schema.
       
      .google.cloud.aiplatform.v1beta1.MetadataValue value = 2;
      Specified by:
      hasValue in interface UserSpecifiedMetadataOrBuilder
      Returns:
      Whether the value field is set.
    • getValue

      public MetadataValue getValue()
       Value of the metadata. The value must be able to convert
       to the type according to the data schema.
       
      .google.cloud.aiplatform.v1beta1.MetadataValue value = 2;
      Specified by:
      getValue in interface UserSpecifiedMetadataOrBuilder
      Returns:
      The value.
    • setValue

       Value of the metadata. The value must be able to convert
       to the type according to the data schema.
       
      .google.cloud.aiplatform.v1beta1.MetadataValue value = 2;
    • setValue

      public UserSpecifiedMetadata.Builder setValue(MetadataValue.Builder builderForValue)
       Value of the metadata. The value must be able to convert
       to the type according to the data schema.
       
      .google.cloud.aiplatform.v1beta1.MetadataValue value = 2;
    • mergeValue

      public UserSpecifiedMetadata.Builder mergeValue(MetadataValue value)
       Value of the metadata. The value must be able to convert
       to the type according to the data schema.
       
      .google.cloud.aiplatform.v1beta1.MetadataValue value = 2;
    • clearValue

      public UserSpecifiedMetadata.Builder clearValue()
       Value of the metadata. The value must be able to convert
       to the type according to the data schema.
       
      .google.cloud.aiplatform.v1beta1.MetadataValue value = 2;
    • getValueBuilder

      public MetadataValue.Builder getValueBuilder()
       Value of the metadata. The value must be able to convert
       to the type according to the data schema.
       
      .google.cloud.aiplatform.v1beta1.MetadataValue value = 2;
    • getValueOrBuilder

      public MetadataValueOrBuilder getValueOrBuilder()
       Value of the metadata. The value must be able to convert
       to the type according to the data schema.
       
      .google.cloud.aiplatform.v1beta1.MetadataValue value = 2;
      Specified by:
      getValueOrBuilder in interface UserSpecifiedMetadataOrBuilder