Class AttributeValue.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AttributeValue.Builder>
com.google.cloud.visionai.v1.AttributeValue.Builder
All Implemented Interfaces:
AttributeValueOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AttributeValue

public static final class AttributeValue.Builder extends com.google.protobuf.GeneratedMessage.Builder<AttributeValue.Builder> implements AttributeValueOrBuilder
 Represents an actual value of an operator attribute.
 
Protobuf type google.cloud.visionai.v1.AttributeValue
  • 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<AttributeValue.Builder>
    • clear

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

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

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

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

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

      public AttributeValue.Builder mergeFrom(AttributeValue other)
    • isInitialized

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

      public AttributeValue.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<AttributeValue.Builder>
      Throws:
      IOException
    • getValueCase

      public AttributeValue.ValueCase getValueCase()
      Specified by:
      getValueCase in interface AttributeValueOrBuilder
    • clearValue

      public AttributeValue.Builder clearValue()
    • hasI

      public boolean hasI()
       int.
       
      int64 i = 1;
      Specified by:
      hasI in interface AttributeValueOrBuilder
      Returns:
      Whether the i field is set.
    • getI

      public long getI()
       int.
       
      int64 i = 1;
      Specified by:
      getI in interface AttributeValueOrBuilder
      Returns:
      The i.
    • setI

      public AttributeValue.Builder setI(long value)
       int.
       
      int64 i = 1;
      Parameters:
      value - The i to set.
      Returns:
      This builder for chaining.
    • clearI

      public AttributeValue.Builder clearI()
       int.
       
      int64 i = 1;
      Returns:
      This builder for chaining.
    • hasF

      public boolean hasF()
       float.
       
      float f = 2;
      Specified by:
      hasF in interface AttributeValueOrBuilder
      Returns:
      Whether the f field is set.
    • getF

      public float getF()
       float.
       
      float f = 2;
      Specified by:
      getF in interface AttributeValueOrBuilder
      Returns:
      The f.
    • setF

      public AttributeValue.Builder setF(float value)
       float.
       
      float f = 2;
      Parameters:
      value - The f to set.
      Returns:
      This builder for chaining.
    • clearF

      public AttributeValue.Builder clearF()
       float.
       
      float f = 2;
      Returns:
      This builder for chaining.
    • hasB

      public boolean hasB()
       bool.
       
      bool b = 3;
      Specified by:
      hasB in interface AttributeValueOrBuilder
      Returns:
      Whether the b field is set.
    • getB

      public boolean getB()
       bool.
       
      bool b = 3;
      Specified by:
      getB in interface AttributeValueOrBuilder
      Returns:
      The b.
    • setB

      public AttributeValue.Builder setB(boolean value)
       bool.
       
      bool b = 3;
      Parameters:
      value - The b to set.
      Returns:
      This builder for chaining.
    • clearB

      public AttributeValue.Builder clearB()
       bool.
       
      bool b = 3;
      Returns:
      This builder for chaining.
    • hasS

      public boolean hasS()
       string.
       
      bytes s = 4;
      Specified by:
      hasS in interface AttributeValueOrBuilder
      Returns:
      Whether the s field is set.
    • getS

      public com.google.protobuf.ByteString getS()
       string.
       
      bytes s = 4;
      Specified by:
      getS in interface AttributeValueOrBuilder
      Returns:
      The s.
    • setS

      public AttributeValue.Builder setS(com.google.protobuf.ByteString value)
       string.
       
      bytes s = 4;
      Parameters:
      value - The s to set.
      Returns:
      This builder for chaining.
    • clearS

      public AttributeValue.Builder clearS()
       string.
       
      bytes s = 4;
      Returns:
      This builder for chaining.