Class ImageCharacteristics.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ImageCharacteristics.Builder>
com.google.cloud.discoveryengine.v1alpha.ImageCharacteristics.Builder
All Implemented Interfaces:
ImageCharacteristicsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ImageCharacteristics

public static final class ImageCharacteristics.Builder extends com.google.protobuf.GeneratedMessage.Builder<ImageCharacteristics.Builder> implements ImageCharacteristicsOrBuilder
 Standard characteristics of an image media view.
 
Protobuf type google.cloud.discoveryengine.v1alpha.ImageCharacteristics
  • 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<ImageCharacteristics.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<ImageCharacteristics.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<ImageCharacteristics.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ImageCharacteristics.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<ImageCharacteristics.Builder>
      Throws:
      IOException
    • getWidth

      public int getWidth()
       Output only. Image width in pixels.
       
      int32 width = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getWidth in interface ImageCharacteristicsOrBuilder
      Returns:
      The width.
    • setWidth

      public ImageCharacteristics.Builder setWidth(int value)
       Output only. Image width in pixels.
       
      int32 width = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The width to set.
      Returns:
      This builder for chaining.
    • clearWidth

      public ImageCharacteristics.Builder clearWidth()
       Output only. Image width in pixels.
       
      int32 width = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getHeight

      public int getHeight()
       Output only. Image height in pixels.
       
      int32 height = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getHeight in interface ImageCharacteristicsOrBuilder
      Returns:
      The height.
    • setHeight

      public ImageCharacteristics.Builder setHeight(int value)
       Output only. Image height in pixels.
       
      int32 height = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The height to set.
      Returns:
      This builder for chaining.
    • clearHeight

      public ImageCharacteristics.Builder clearHeight()
       Output only. Image height in pixels.
       
      int32 height = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getColorSpaceValue

      public int getColorSpaceValue()
       Output only. Color space of the image (e.g., "RGB", "CMYK", "Grayscale").
       
      .google.cloud.discoveryengine.v1alpha.ImageCharacteristics.ColorSpace color_space = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getColorSpaceValue in interface ImageCharacteristicsOrBuilder
      Returns:
      The enum numeric value on the wire for colorSpace.
    • setColorSpaceValue

      public ImageCharacteristics.Builder setColorSpaceValue(int value)
       Output only. Color space of the image (e.g., "RGB", "CMYK", "Grayscale").
       
      .google.cloud.discoveryengine.v1alpha.ImageCharacteristics.ColorSpace color_space = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for colorSpace to set.
      Returns:
      This builder for chaining.
    • getColorSpace

      public ImageCharacteristics.ColorSpace getColorSpace()
       Output only. Color space of the image (e.g., "RGB", "CMYK", "Grayscale").
       
      .google.cloud.discoveryengine.v1alpha.ImageCharacteristics.ColorSpace color_space = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getColorSpace in interface ImageCharacteristicsOrBuilder
      Returns:
      The colorSpace.
    • setColorSpace

       Output only. Color space of the image (e.g., "RGB", "CMYK", "Grayscale").
       
      .google.cloud.discoveryengine.v1alpha.ImageCharacteristics.ColorSpace color_space = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The colorSpace to set.
      Returns:
      This builder for chaining.
    • clearColorSpace

      public ImageCharacteristics.Builder clearColorSpace()
       Output only. Color space of the image (e.g., "RGB", "CMYK", "Grayscale").
       
      .google.cloud.discoveryengine.v1alpha.ImageCharacteristics.ColorSpace color_space = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getBitDepth

      public int getBitDepth()
       Output only. Bit depth of the image (e.g., 8-bit, 16-bit).
       
      int32 bit_depth = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBitDepth in interface ImageCharacteristicsOrBuilder
      Returns:
      The bitDepth.
    • setBitDepth

      public ImageCharacteristics.Builder setBitDepth(int value)
       Output only. Bit depth of the image (e.g., 8-bit, 16-bit).
       
      int32 bit_depth = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bitDepth to set.
      Returns:
      This builder for chaining.
    • clearBitDepth

      public ImageCharacteristics.Builder clearBitDepth()
       Output only. Bit depth of the image (e.g., 8-bit, 16-bit).
       
      int32 bit_depth = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.