Class ImageDimension.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ImageDimension.Builder>
com.google.ads.googleads.v22.common.ImageDimension.Builder
All Implemented Interfaces:
ImageDimensionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ImageDimension

public static final class ImageDimension.Builder extends com.google.protobuf.GeneratedMessage.Builder<ImageDimension.Builder> implements ImageDimensionOrBuilder
 Metadata for an image at a certain size, either original or resized.
 
Protobuf type google.ads.googleads.v22.common.ImageDimension
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Height of the image.
    A URL that returns the image with this height and width.
    Width of the image.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    long
    Height of the image.
    A URL that returns the image with this height and width.
    com.google.protobuf.ByteString
    A URL that returns the image with this height and width.
    long
    Width of the image.
    boolean
    Height of the image.
    boolean
    A URL that returns the image with this height and width.
    boolean
    Width of the image.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setHeightPixels(long value)
    Height of the image.
    setUrl(String value)
    A URL that returns the image with this height and width.
    setUrlBytes(com.google.protobuf.ByteString value)
    A URL that returns the image with this height and width.
    setWidthPixels(long value)
    Width of the image.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<ImageDimension.Builder>
    • clear

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

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

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

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

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

      public ImageDimension.Builder mergeFrom(ImageDimension other)
    • isInitialized

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

      public ImageDimension.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<ImageDimension.Builder>
      Throws:
      IOException
    • hasHeightPixels

      public boolean hasHeightPixels()
       Height of the image.
       
      optional int64 height_pixels = 4;
      Specified by:
      hasHeightPixels in interface ImageDimensionOrBuilder
      Returns:
      Whether the heightPixels field is set.
    • getHeightPixels

      public long getHeightPixels()
       Height of the image.
       
      optional int64 height_pixels = 4;
      Specified by:
      getHeightPixels in interface ImageDimensionOrBuilder
      Returns:
      The heightPixels.
    • setHeightPixels

      public ImageDimension.Builder setHeightPixels(long value)
       Height of the image.
       
      optional int64 height_pixels = 4;
      Parameters:
      value - The heightPixels to set.
      Returns:
      This builder for chaining.
    • clearHeightPixels

      public ImageDimension.Builder clearHeightPixels()
       Height of the image.
       
      optional int64 height_pixels = 4;
      Returns:
      This builder for chaining.
    • hasWidthPixels

      public boolean hasWidthPixels()
       Width of the image.
       
      optional int64 width_pixels = 5;
      Specified by:
      hasWidthPixels in interface ImageDimensionOrBuilder
      Returns:
      Whether the widthPixels field is set.
    • getWidthPixels

      public long getWidthPixels()
       Width of the image.
       
      optional int64 width_pixels = 5;
      Specified by:
      getWidthPixels in interface ImageDimensionOrBuilder
      Returns:
      The widthPixels.
    • setWidthPixels

      public ImageDimension.Builder setWidthPixels(long value)
       Width of the image.
       
      optional int64 width_pixels = 5;
      Parameters:
      value - The widthPixels to set.
      Returns:
      This builder for chaining.
    • clearWidthPixels

      public ImageDimension.Builder clearWidthPixels()
       Width of the image.
       
      optional int64 width_pixels = 5;
      Returns:
      This builder for chaining.
    • hasUrl

      public boolean hasUrl()
       A URL that returns the image with this height and width.
       
      optional string url = 6;
      Specified by:
      hasUrl in interface ImageDimensionOrBuilder
      Returns:
      Whether the url field is set.
    • getUrl

      public String getUrl()
       A URL that returns the image with this height and width.
       
      optional string url = 6;
      Specified by:
      getUrl in interface ImageDimensionOrBuilder
      Returns:
      The url.
    • getUrlBytes

      public com.google.protobuf.ByteString getUrlBytes()
       A URL that returns the image with this height and width.
       
      optional string url = 6;
      Specified by:
      getUrlBytes in interface ImageDimensionOrBuilder
      Returns:
      The bytes for url.
    • setUrl

      public ImageDimension.Builder setUrl(String value)
       A URL that returns the image with this height and width.
       
      optional string url = 6;
      Parameters:
      value - The url to set.
      Returns:
      This builder for chaining.
    • clearUrl

      public ImageDimension.Builder clearUrl()
       A URL that returns the image with this height and width.
       
      optional string url = 6;
      Returns:
      This builder for chaining.
    • setUrlBytes

      public ImageDimension.Builder setUrlBytes(com.google.protobuf.ByteString value)
       A URL that returns the image with this height and width.
       
      optional string url = 6;
      Parameters:
      value - The bytes for url to set.
      Returns:
      This builder for chaining.