Class DetectedAttribute.Builder

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

public static final class DetectedAttribute.Builder extends com.google.protobuf.GeneratedMessage.Builder<DetectedAttribute.Builder> implements DetectedAttributeOrBuilder
 A generic detected attribute represented by name in string format.
 
Protobuf type google.cloud.videointelligence.v1.DetectedAttribute
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Detected attribute confidence.
    The name of the attribute, for example, glasses, dark_glasses, mouth_open.
    Text value of the detection result.
    float
    Detected attribute confidence.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    The name of the attribute, for example, glasses, dark_glasses, mouth_open.
    com.google.protobuf.ByteString
    The name of the attribute, for example, glasses, dark_glasses, mouth_open.
    Text value of the detection result.
    com.google.protobuf.ByteString
    Text value of the detection result.
    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)
     
    setConfidence(float value)
    Detected attribute confidence.
    setName(String value)
    The name of the attribute, for example, glasses, dark_glasses, mouth_open.
    setNameBytes(com.google.protobuf.ByteString value)
    The name of the attribute, for example, glasses, dark_glasses, mouth_open.
    Text value of the detection result.
    setValueBytes(com.google.protobuf.ByteString value)
    Text value of the detection result.

    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<DetectedAttribute.Builder>
    • clear

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

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

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

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

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

      public DetectedAttribute.Builder mergeFrom(DetectedAttribute other)
    • isInitialized

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

      public DetectedAttribute.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<DetectedAttribute.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The name of the attribute, for example, glasses, dark_glasses, mouth_open.
       A full list of supported type names will be provided in the document.
       
      string name = 1;
      Specified by:
      getName in interface DetectedAttributeOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the attribute, for example, glasses, dark_glasses, mouth_open.
       A full list of supported type names will be provided in the document.
       
      string name = 1;
      Specified by:
      getNameBytes in interface DetectedAttributeOrBuilder
      Returns:
      The bytes for name.
    • setName

      public DetectedAttribute.Builder setName(String value)
       The name of the attribute, for example, glasses, dark_glasses, mouth_open.
       A full list of supported type names will be provided in the document.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public DetectedAttribute.Builder clearName()
       The name of the attribute, for example, glasses, dark_glasses, mouth_open.
       A full list of supported type names will be provided in the document.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public DetectedAttribute.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of the attribute, for example, glasses, dark_glasses, mouth_open.
       A full list of supported type names will be provided in the document.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getConfidence

      public float getConfidence()
       Detected attribute confidence. Range [0, 1].
       
      float confidence = 2;
      Specified by:
      getConfidence in interface DetectedAttributeOrBuilder
      Returns:
      The confidence.
    • setConfidence

      public DetectedAttribute.Builder setConfidence(float value)
       Detected attribute confidence. Range [0, 1].
       
      float confidence = 2;
      Parameters:
      value - The confidence to set.
      Returns:
      This builder for chaining.
    • clearConfidence

      public DetectedAttribute.Builder clearConfidence()
       Detected attribute confidence. Range [0, 1].
       
      float confidence = 2;
      Returns:
      This builder for chaining.
    • getValue

      public String getValue()
       Text value of the detection result. For example, the value for "HairColor"
       can be "black", "blonde", etc.
       
      string value = 3;
      Specified by:
      getValue in interface DetectedAttributeOrBuilder
      Returns:
      The value.
    • getValueBytes

      public com.google.protobuf.ByteString getValueBytes()
       Text value of the detection result. For example, the value for "HairColor"
       can be "black", "blonde", etc.
       
      string value = 3;
      Specified by:
      getValueBytes in interface DetectedAttributeOrBuilder
      Returns:
      The bytes for value.
    • setValue

      public DetectedAttribute.Builder setValue(String value)
       Text value of the detection result. For example, the value for "HairColor"
       can be "black", "blonde", etc.
       
      string value = 3;
      Parameters:
      value - The value to set.
      Returns:
      This builder for chaining.
    • clearValue

      public DetectedAttribute.Builder clearValue()
       Text value of the detection result. For example, the value for "HairColor"
       can be "black", "blonde", etc.
       
      string value = 3;
      Returns:
      This builder for chaining.
    • setValueBytes

      public DetectedAttribute.Builder setValueBytes(com.google.protobuf.ByteString value)
       Text value of the detection result. For example, the value for "HairColor"
       can be "black", "blonde", etc.
       
      string value = 3;
      Parameters:
      value - The bytes for value to set.
      Returns:
      This builder for chaining.