Class Image.Builder

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

public static final class Image.Builder extends com.google.protobuf.GeneratedMessage.Builder<Image.Builder> implements ImageOrBuilder
 A representation of an image.
 Only images up to 30MB in size are supported.
 
Protobuf type google.cloud.automl.v1beta1.Image
  • 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<Image.Builder>
    • clear

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

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

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

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

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

      public Image.Builder mergeFrom(Image other)
    • isInitialized

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

      public Image.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<Image.Builder>
      Throws:
      IOException
    • getDataCase

      public Image.DataCase getDataCase()
      Specified by:
      getDataCase in interface ImageOrBuilder
    • clearData

      public Image.Builder clearData()
    • hasImageBytes

      public boolean hasImageBytes()
       Image content represented as a stream of bytes.
       Note: As with all `bytes` fields, protobuffers use a pure binary
       representation, whereas JSON representations use base64.
       
      bytes image_bytes = 1;
      Specified by:
      hasImageBytes in interface ImageOrBuilder
      Returns:
      Whether the imageBytes field is set.
    • getImageBytes

      public com.google.protobuf.ByteString getImageBytes()
       Image content represented as a stream of bytes.
       Note: As with all `bytes` fields, protobuffers use a pure binary
       representation, whereas JSON representations use base64.
       
      bytes image_bytes = 1;
      Specified by:
      getImageBytes in interface ImageOrBuilder
      Returns:
      The imageBytes.
    • setImageBytes

      public Image.Builder setImageBytes(com.google.protobuf.ByteString value)
       Image content represented as a stream of bytes.
       Note: As with all `bytes` fields, protobuffers use a pure binary
       representation, whereas JSON representations use base64.
       
      bytes image_bytes = 1;
      Parameters:
      value - The imageBytes to set.
      Returns:
      This builder for chaining.
    • clearImageBytes

      public Image.Builder clearImageBytes()
       Image content represented as a stream of bytes.
       Note: As with all `bytes` fields, protobuffers use a pure binary
       representation, whereas JSON representations use base64.
       
      bytes image_bytes = 1;
      Returns:
      This builder for chaining.
    • hasInputConfig

      public boolean hasInputConfig()
       An input config specifying the content of the image.
       
      .google.cloud.automl.v1beta1.InputConfig input_config = 6;
      Specified by:
      hasInputConfig in interface ImageOrBuilder
      Returns:
      Whether the inputConfig field is set.
    • getInputConfig

      public InputConfig getInputConfig()
       An input config specifying the content of the image.
       
      .google.cloud.automl.v1beta1.InputConfig input_config = 6;
      Specified by:
      getInputConfig in interface ImageOrBuilder
      Returns:
      The inputConfig.
    • setInputConfig

      public Image.Builder setInputConfig(InputConfig value)
       An input config specifying the content of the image.
       
      .google.cloud.automl.v1beta1.InputConfig input_config = 6;
    • setInputConfig

      public Image.Builder setInputConfig(InputConfig.Builder builderForValue)
       An input config specifying the content of the image.
       
      .google.cloud.automl.v1beta1.InputConfig input_config = 6;
    • mergeInputConfig

      public Image.Builder mergeInputConfig(InputConfig value)
       An input config specifying the content of the image.
       
      .google.cloud.automl.v1beta1.InputConfig input_config = 6;
    • clearInputConfig

      public Image.Builder clearInputConfig()
       An input config specifying the content of the image.
       
      .google.cloud.automl.v1beta1.InputConfig input_config = 6;
    • getInputConfigBuilder

      public InputConfig.Builder getInputConfigBuilder()
       An input config specifying the content of the image.
       
      .google.cloud.automl.v1beta1.InputConfig input_config = 6;
    • getInputConfigOrBuilder

      public InputConfigOrBuilder getInputConfigOrBuilder()
       An input config specifying the content of the image.
       
      .google.cloud.automl.v1beta1.InputConfig input_config = 6;
      Specified by:
      getInputConfigOrBuilder in interface ImageOrBuilder
    • getThumbnailUri

      public String getThumbnailUri()
       Output only. HTTP URI to the thumbnail image.
       
      string thumbnail_uri = 4;
      Specified by:
      getThumbnailUri in interface ImageOrBuilder
      Returns:
      The thumbnailUri.
    • getThumbnailUriBytes

      public com.google.protobuf.ByteString getThumbnailUriBytes()
       Output only. HTTP URI to the thumbnail image.
       
      string thumbnail_uri = 4;
      Specified by:
      getThumbnailUriBytes in interface ImageOrBuilder
      Returns:
      The bytes for thumbnailUri.
    • setThumbnailUri

      public Image.Builder setThumbnailUri(String value)
       Output only. HTTP URI to the thumbnail image.
       
      string thumbnail_uri = 4;
      Parameters:
      value - The thumbnailUri to set.
      Returns:
      This builder for chaining.
    • clearThumbnailUri

      public Image.Builder clearThumbnailUri()
       Output only. HTTP URI to the thumbnail image.
       
      string thumbnail_uri = 4;
      Returns:
      This builder for chaining.
    • setThumbnailUriBytes

      public Image.Builder setThumbnailUriBytes(com.google.protobuf.ByteString value)
       Output only. HTTP URI to the thumbnail image.
       
      string thumbnail_uri = 4;
      Parameters:
      value - The bytes for thumbnailUri to set.
      Returns:
      This builder for chaining.