Package com.google.cloud.visionai.v1
Class StreamAnnotation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StreamAnnotation.Builder>
com.google.cloud.visionai.v1.StreamAnnotation.Builder
- All Implemented Interfaces:
StreamAnnotationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- StreamAnnotation
public static final class StreamAnnotation.Builder
extends com.google.protobuf.GeneratedMessage.Builder<StreamAnnotation.Builder>
implements StreamAnnotationOrBuilder
message about annotations about Vision AI stream resource.Protobuf type
google.cloud.visionai.v1.StreamAnnotation-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Annotation for type ACTIVE_ZONEAnnotation for type CROSSING_LINEUser-friendly name for the annotation.clearId()ID of the annotation.The Vision AI stream resource name.The actual type of Annotation.Annotation for type ACTIVE_ZONEAnnotation for type ACTIVE_ZONEAnnotation for type ACTIVE_ZONEAnnotation for type CROSSING_LINEAnnotation for type CROSSING_LINEAnnotation for type CROSSING_LINEstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorUser-friendly name for the annotation.com.google.protobuf.ByteStringUser-friendly name for the annotation.getId()ID of the annotation.com.google.protobuf.ByteStringID of the annotation.The Vision AI stream resource name.com.google.protobuf.ByteStringThe Vision AI stream resource name.getType()The actual type of Annotation.intThe actual type of Annotation.booleanAnnotation for type ACTIVE_ZONEbooleanAnnotation for type CROSSING_LINEprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeActiveZone(NormalizedPolygon value) Annotation for type ACTIVE_ZONEAnnotation for type CROSSING_LINEmergeFrom(StreamAnnotation other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setActiveZone(NormalizedPolygon value) Annotation for type ACTIVE_ZONEsetActiveZone(NormalizedPolygon.Builder builderForValue) Annotation for type ACTIVE_ZONEAnnotation for type CROSSING_LINEsetCrossingLine(NormalizedPolyline.Builder builderForValue) Annotation for type CROSSING_LINEsetDisplayName(String value) User-friendly name for the annotation.setDisplayNameBytes(com.google.protobuf.ByteString value) User-friendly name for the annotation.ID of the annotation.setIdBytes(com.google.protobuf.ByteString value) ID of the annotation.setSourceStream(String value) The Vision AI stream resource name.setSourceStreamBytes(com.google.protobuf.ByteString value) The Vision AI stream resource name.setType(StreamAnnotationType value) The actual type of Annotation.setTypeValue(int value) The actual type of Annotation.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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<StreamAnnotation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<StreamAnnotation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<StreamAnnotation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StreamAnnotation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<StreamAnnotation.Builder>
-
mergeFrom
public StreamAnnotation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StreamAnnotation.Builder>- Throws:
IOException
-
getAnnotationPayloadCase
- Specified by:
getAnnotationPayloadCasein interfaceStreamAnnotationOrBuilder
-
clearAnnotationPayload
-
hasActiveZone
public boolean hasActiveZone()Annotation for type ACTIVE_ZONE
.google.cloud.visionai.v1.NormalizedPolygon active_zone = 5;- Specified by:
hasActiveZonein interfaceStreamAnnotationOrBuilder- Returns:
- Whether the activeZone field is set.
-
getActiveZone
Annotation for type ACTIVE_ZONE
.google.cloud.visionai.v1.NormalizedPolygon active_zone = 5;- Specified by:
getActiveZonein interfaceStreamAnnotationOrBuilder- Returns:
- The activeZone.
-
setActiveZone
Annotation for type ACTIVE_ZONE
.google.cloud.visionai.v1.NormalizedPolygon active_zone = 5; -
setActiveZone
Annotation for type ACTIVE_ZONE
.google.cloud.visionai.v1.NormalizedPolygon active_zone = 5; -
mergeActiveZone
Annotation for type ACTIVE_ZONE
.google.cloud.visionai.v1.NormalizedPolygon active_zone = 5; -
clearActiveZone
Annotation for type ACTIVE_ZONE
.google.cloud.visionai.v1.NormalizedPolygon active_zone = 5; -
getActiveZoneBuilder
Annotation for type ACTIVE_ZONE
.google.cloud.visionai.v1.NormalizedPolygon active_zone = 5; -
getActiveZoneOrBuilder
Annotation for type ACTIVE_ZONE
.google.cloud.visionai.v1.NormalizedPolygon active_zone = 5;- Specified by:
getActiveZoneOrBuilderin interfaceStreamAnnotationOrBuilder
-
hasCrossingLine
public boolean hasCrossingLine()Annotation for type CROSSING_LINE
.google.cloud.visionai.v1.NormalizedPolyline crossing_line = 6;- Specified by:
hasCrossingLinein interfaceStreamAnnotationOrBuilder- Returns:
- Whether the crossingLine field is set.
-
getCrossingLine
Annotation for type CROSSING_LINE
.google.cloud.visionai.v1.NormalizedPolyline crossing_line = 6;- Specified by:
getCrossingLinein interfaceStreamAnnotationOrBuilder- Returns:
- The crossingLine.
-
setCrossingLine
Annotation for type CROSSING_LINE
.google.cloud.visionai.v1.NormalizedPolyline crossing_line = 6; -
setCrossingLine
Annotation for type CROSSING_LINE
.google.cloud.visionai.v1.NormalizedPolyline crossing_line = 6; -
mergeCrossingLine
Annotation for type CROSSING_LINE
.google.cloud.visionai.v1.NormalizedPolyline crossing_line = 6; -
clearCrossingLine
Annotation for type CROSSING_LINE
.google.cloud.visionai.v1.NormalizedPolyline crossing_line = 6; -
getCrossingLineBuilder
Annotation for type CROSSING_LINE
.google.cloud.visionai.v1.NormalizedPolyline crossing_line = 6; -
getCrossingLineOrBuilder
Annotation for type CROSSING_LINE
.google.cloud.visionai.v1.NormalizedPolyline crossing_line = 6;- Specified by:
getCrossingLineOrBuilderin interfaceStreamAnnotationOrBuilder
-
getId
ID of the annotation. It must be unique when used in the certain context. For example, all the annotations to one input streams of a Vision AI application.
string id = 1;- Specified by:
getIdin interfaceStreamAnnotationOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()ID of the annotation. It must be unique when used in the certain context. For example, all the annotations to one input streams of a Vision AI application.
string id = 1;- Specified by:
getIdBytesin interfaceStreamAnnotationOrBuilder- Returns:
- The bytes for id.
-
setId
ID of the annotation. It must be unique when used in the certain context. For example, all the annotations to one input streams of a Vision AI application.
string id = 1;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
ID of the annotation. It must be unique when used in the certain context. For example, all the annotations to one input streams of a Vision AI application.
string id = 1;- Returns:
- This builder for chaining.
-
setIdBytes
ID of the annotation. It must be unique when used in the certain context. For example, all the annotations to one input streams of a Vision AI application.
string id = 1;- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
getDisplayName
User-friendly name for the annotation.
string display_name = 2;- Specified by:
getDisplayNamein interfaceStreamAnnotationOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()User-friendly name for the annotation.
string display_name = 2;- Specified by:
getDisplayNameBytesin interfaceStreamAnnotationOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
User-friendly name for the annotation.
string display_name = 2;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
User-friendly name for the annotation.
string display_name = 2;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
User-friendly name for the annotation.
string display_name = 2;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getSourceStream
The Vision AI stream resource name.
string source_stream = 3;- Specified by:
getSourceStreamin interfaceStreamAnnotationOrBuilder- Returns:
- The sourceStream.
-
getSourceStreamBytes
public com.google.protobuf.ByteString getSourceStreamBytes()The Vision AI stream resource name.
string source_stream = 3;- Specified by:
getSourceStreamBytesin interfaceStreamAnnotationOrBuilder- Returns:
- The bytes for sourceStream.
-
setSourceStream
The Vision AI stream resource name.
string source_stream = 3;- Parameters:
value- The sourceStream to set.- Returns:
- This builder for chaining.
-
clearSourceStream
The Vision AI stream resource name.
string source_stream = 3;- Returns:
- This builder for chaining.
-
setSourceStreamBytes
The Vision AI stream resource name.
string source_stream = 3;- Parameters:
value- The bytes for sourceStream to set.- Returns:
- This builder for chaining.
-
getTypeValue
public int getTypeValue()The actual type of Annotation.
.google.cloud.visionai.v1.StreamAnnotationType type = 4;- Specified by:
getTypeValuein interfaceStreamAnnotationOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
The actual type of Annotation.
.google.cloud.visionai.v1.StreamAnnotationType type = 4;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
The actual type of Annotation.
.google.cloud.visionai.v1.StreamAnnotationType type = 4;- Specified by:
getTypein interfaceStreamAnnotationOrBuilder- Returns:
- The type.
-
setType
The actual type of Annotation.
.google.cloud.visionai.v1.StreamAnnotationType type = 4;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
The actual type of Annotation.
.google.cloud.visionai.v1.StreamAnnotationType type = 4;- Returns:
- This builder for chaining.
-