Class WordInfo.Builder

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

public static final class WordInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<WordInfo.Builder> implements WordInfoOrBuilder
 Word-specific information for recognized words. Word information is only
 included in the response when certain request parameters are set, such
 as `enable_word_time_offsets`.
 
Protobuf type google.cloud.videointelligence.v1p1beta1.WordInfo
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Output only.
    Output only.
    Output only.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Duration
    Output only.
    com.google.protobuf.Duration.Builder
    Output only.
    com.google.protobuf.DurationOrBuilder
    Output only.
    com.google.protobuf.Duration
    Output only.
    com.google.protobuf.Duration.Builder
    Output only.
    com.google.protobuf.DurationOrBuilder
    Output only.
    Output only.
    com.google.protobuf.ByteString
    Output only.
    boolean
    Output only.
    boolean
    Output only.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    mergeEndTime(com.google.protobuf.Duration value)
    Output only.
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    mergeStartTime(com.google.protobuf.Duration value)
    Output only.
    setEndTime(com.google.protobuf.Duration value)
    Output only.
    setEndTime(com.google.protobuf.Duration.Builder builderForValue)
    Output only.
    setStartTime(com.google.protobuf.Duration value)
    Output only.
    setStartTime(com.google.protobuf.Duration.Builder builderForValue)
    Output only.
    setWord(String value)
    Output only.
    setWordBytes(com.google.protobuf.ByteString value)
    Output only.

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

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

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

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

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

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

      public WordInfo.Builder mergeFrom(WordInfo other)
    • isInitialized

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

      public WordInfo.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<WordInfo.Builder>
      Throws:
      IOException
    • hasStartTime

      public boolean hasStartTime()
       Output only. Time offset relative to the beginning of the audio, and
       corresponding to the start of the spoken word. This field is only set if
       `enable_word_time_offsets=true` and only in the top hypothesis. This is an
       experimental feature and the accuracy of the time offset can vary.
       
      .google.protobuf.Duration start_time = 1;
      Specified by:
      hasStartTime in interface WordInfoOrBuilder
      Returns:
      Whether the startTime field is set.
    • getStartTime

      public com.google.protobuf.Duration getStartTime()
       Output only. Time offset relative to the beginning of the audio, and
       corresponding to the start of the spoken word. This field is only set if
       `enable_word_time_offsets=true` and only in the top hypothesis. This is an
       experimental feature and the accuracy of the time offset can vary.
       
      .google.protobuf.Duration start_time = 1;
      Specified by:
      getStartTime in interface WordInfoOrBuilder
      Returns:
      The startTime.
    • setStartTime

      public WordInfo.Builder setStartTime(com.google.protobuf.Duration value)
       Output only. Time offset relative to the beginning of the audio, and
       corresponding to the start of the spoken word. This field is only set if
       `enable_word_time_offsets=true` and only in the top hypothesis. This is an
       experimental feature and the accuracy of the time offset can vary.
       
      .google.protobuf.Duration start_time = 1;
    • setStartTime

      public WordInfo.Builder setStartTime(com.google.protobuf.Duration.Builder builderForValue)
       Output only. Time offset relative to the beginning of the audio, and
       corresponding to the start of the spoken word. This field is only set if
       `enable_word_time_offsets=true` and only in the top hypothesis. This is an
       experimental feature and the accuracy of the time offset can vary.
       
      .google.protobuf.Duration start_time = 1;
    • mergeStartTime

      public WordInfo.Builder mergeStartTime(com.google.protobuf.Duration value)
       Output only. Time offset relative to the beginning of the audio, and
       corresponding to the start of the spoken word. This field is only set if
       `enable_word_time_offsets=true` and only in the top hypothesis. This is an
       experimental feature and the accuracy of the time offset can vary.
       
      .google.protobuf.Duration start_time = 1;
    • clearStartTime

      public WordInfo.Builder clearStartTime()
       Output only. Time offset relative to the beginning of the audio, and
       corresponding to the start of the spoken word. This field is only set if
       `enable_word_time_offsets=true` and only in the top hypothesis. This is an
       experimental feature and the accuracy of the time offset can vary.
       
      .google.protobuf.Duration start_time = 1;
    • getStartTimeBuilder

      public com.google.protobuf.Duration.Builder getStartTimeBuilder()
       Output only. Time offset relative to the beginning of the audio, and
       corresponding to the start of the spoken word. This field is only set if
       `enable_word_time_offsets=true` and only in the top hypothesis. This is an
       experimental feature and the accuracy of the time offset can vary.
       
      .google.protobuf.Duration start_time = 1;
    • getStartTimeOrBuilder

      public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder()
       Output only. Time offset relative to the beginning of the audio, and
       corresponding to the start of the spoken word. This field is only set if
       `enable_word_time_offsets=true` and only in the top hypothesis. This is an
       experimental feature and the accuracy of the time offset can vary.
       
      .google.protobuf.Duration start_time = 1;
      Specified by:
      getStartTimeOrBuilder in interface WordInfoOrBuilder
    • hasEndTime

      public boolean hasEndTime()
       Output only. Time offset relative to the beginning of the audio, and
       corresponding to the end of the spoken word. This field is only set if
       `enable_word_time_offsets=true` and only in the top hypothesis. This is an
       experimental feature and the accuracy of the time offset can vary.
       
      .google.protobuf.Duration end_time = 2;
      Specified by:
      hasEndTime in interface WordInfoOrBuilder
      Returns:
      Whether the endTime field is set.
    • getEndTime

      public com.google.protobuf.Duration getEndTime()
       Output only. Time offset relative to the beginning of the audio, and
       corresponding to the end of the spoken word. This field is only set if
       `enable_word_time_offsets=true` and only in the top hypothesis. This is an
       experimental feature and the accuracy of the time offset can vary.
       
      .google.protobuf.Duration end_time = 2;
      Specified by:
      getEndTime in interface WordInfoOrBuilder
      Returns:
      The endTime.
    • setEndTime

      public WordInfo.Builder setEndTime(com.google.protobuf.Duration value)
       Output only. Time offset relative to the beginning of the audio, and
       corresponding to the end of the spoken word. This field is only set if
       `enable_word_time_offsets=true` and only in the top hypothesis. This is an
       experimental feature and the accuracy of the time offset can vary.
       
      .google.protobuf.Duration end_time = 2;
    • setEndTime

      public WordInfo.Builder setEndTime(com.google.protobuf.Duration.Builder builderForValue)
       Output only. Time offset relative to the beginning of the audio, and
       corresponding to the end of the spoken word. This field is only set if
       `enable_word_time_offsets=true` and only in the top hypothesis. This is an
       experimental feature and the accuracy of the time offset can vary.
       
      .google.protobuf.Duration end_time = 2;
    • mergeEndTime

      public WordInfo.Builder mergeEndTime(com.google.protobuf.Duration value)
       Output only. Time offset relative to the beginning of the audio, and
       corresponding to the end of the spoken word. This field is only set if
       `enable_word_time_offsets=true` and only in the top hypothesis. This is an
       experimental feature and the accuracy of the time offset can vary.
       
      .google.protobuf.Duration end_time = 2;
    • clearEndTime

      public WordInfo.Builder clearEndTime()
       Output only. Time offset relative to the beginning of the audio, and
       corresponding to the end of the spoken word. This field is only set if
       `enable_word_time_offsets=true` and only in the top hypothesis. This is an
       experimental feature and the accuracy of the time offset can vary.
       
      .google.protobuf.Duration end_time = 2;
    • getEndTimeBuilder

      public com.google.protobuf.Duration.Builder getEndTimeBuilder()
       Output only. Time offset relative to the beginning of the audio, and
       corresponding to the end of the spoken word. This field is only set if
       `enable_word_time_offsets=true` and only in the top hypothesis. This is an
       experimental feature and the accuracy of the time offset can vary.
       
      .google.protobuf.Duration end_time = 2;
    • getEndTimeOrBuilder

      public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder()
       Output only. Time offset relative to the beginning of the audio, and
       corresponding to the end of the spoken word. This field is only set if
       `enable_word_time_offsets=true` and only in the top hypothesis. This is an
       experimental feature and the accuracy of the time offset can vary.
       
      .google.protobuf.Duration end_time = 2;
      Specified by:
      getEndTimeOrBuilder in interface WordInfoOrBuilder
    • getWord

      public String getWord()
       Output only. The word corresponding to this set of information.
       
      string word = 3;
      Specified by:
      getWord in interface WordInfoOrBuilder
      Returns:
      The word.
    • getWordBytes

      public com.google.protobuf.ByteString getWordBytes()
       Output only. The word corresponding to this set of information.
       
      string word = 3;
      Specified by:
      getWordBytes in interface WordInfoOrBuilder
      Returns:
      The bytes for word.
    • setWord

      public WordInfo.Builder setWord(String value)
       Output only. The word corresponding to this set of information.
       
      string word = 3;
      Parameters:
      value - The word to set.
      Returns:
      This builder for chaining.
    • clearWord

      public WordInfo.Builder clearWord()
       Output only. The word corresponding to this set of information.
       
      string word = 3;
      Returns:
      This builder for chaining.
    • setWordBytes

      public WordInfo.Builder setWordBytes(com.google.protobuf.ByteString value)
       Output only. The word corresponding to this set of information.
       
      string word = 3;
      Parameters:
      value - The bytes for word to set.
      Returns:
      This builder for chaining.