Class ByteDataItem.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ByteDataItem.Builder>
com.google.cloud.modelarmor.v1beta.ByteDataItem.Builder
All Implemented Interfaces:
ByteDataItemOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ByteDataItem

public static final class ByteDataItem.Builder extends com.google.protobuf.GeneratedMessage.Builder<ByteDataItem.Builder> implements ByteDataItemOrBuilder
 Represents Byte Data item.
 
Protobuf type google.cloud.modelarmor.v1beta.ByteDataItem
  • 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<ByteDataItem.Builder>
    • clear

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

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

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

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

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

      public ByteDataItem.Builder mergeFrom(ByteDataItem other)
    • isInitialized

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

      public ByteDataItem.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<ByteDataItem.Builder>
      Throws:
      IOException
    • getByteDataTypeValue

      public int getByteDataTypeValue()
       Required. The type of byte data
       
      .google.cloud.modelarmor.v1beta.ByteDataItem.ByteItemType byte_data_type = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getByteDataTypeValue in interface ByteDataItemOrBuilder
      Returns:
      The enum numeric value on the wire for byteDataType.
    • setByteDataTypeValue

      public ByteDataItem.Builder setByteDataTypeValue(int value)
       Required. The type of byte data
       
      .google.cloud.modelarmor.v1beta.ByteDataItem.ByteItemType byte_data_type = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for byteDataType to set.
      Returns:
      This builder for chaining.
    • getByteDataType

      public ByteDataItem.ByteItemType getByteDataType()
       Required. The type of byte data
       
      .google.cloud.modelarmor.v1beta.ByteDataItem.ByteItemType byte_data_type = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getByteDataType in interface ByteDataItemOrBuilder
      Returns:
      The byteDataType.
    • setByteDataType

      public ByteDataItem.Builder setByteDataType(ByteDataItem.ByteItemType value)
       Required. The type of byte data
       
      .google.cloud.modelarmor.v1beta.ByteDataItem.ByteItemType byte_data_type = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The byteDataType to set.
      Returns:
      This builder for chaining.
    • clearByteDataType

      public ByteDataItem.Builder clearByteDataType()
       Required. The type of byte data
       
      .google.cloud.modelarmor.v1beta.ByteDataItem.ByteItemType byte_data_type = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getByteData

      public com.google.protobuf.ByteString getByteData()
       Required. Bytes Data
       
      bytes byte_data = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getByteData in interface ByteDataItemOrBuilder
      Returns:
      The byteData.
    • setByteData

      public ByteDataItem.Builder setByteData(com.google.protobuf.ByteString value)
       Required. Bytes Data
       
      bytes byte_data = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The byteData to set.
      Returns:
      This builder for chaining.
    • clearByteData

      public ByteDataItem.Builder clearByteData()
       Required. Bytes Data
       
      bytes byte_data = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getFileLabel

      public String getFileLabel()
       Optional. Label of the file. This is used to identify the file in the
       response.
       
      string file_label = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFileLabel in interface ByteDataItemOrBuilder
      Returns:
      The fileLabel.
    • getFileLabelBytes

      public com.google.protobuf.ByteString getFileLabelBytes()
       Optional. Label of the file. This is used to identify the file in the
       response.
       
      string file_label = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFileLabelBytes in interface ByteDataItemOrBuilder
      Returns:
      The bytes for fileLabel.
    • setFileLabel

      public ByteDataItem.Builder setFileLabel(String value)
       Optional. Label of the file. This is used to identify the file in the
       response.
       
      string file_label = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The fileLabel to set.
      Returns:
      This builder for chaining.
    • clearFileLabel

      public ByteDataItem.Builder clearFileLabel()
       Optional. Label of the file. This is used to identify the file in the
       response.
       
      string file_label = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setFileLabelBytes

      public ByteDataItem.Builder setFileLabelBytes(com.google.protobuf.ByteString value)
       Optional. Label of the file. This is used to identify the file in the
       response.
       
      string file_label = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for fileLabel to set.
      Returns:
      This builder for chaining.