Package com.google.cloud.visionai.v1
Class AnnotationValue.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AnnotationValue.Builder>
com.google.cloud.visionai.v1.AnnotationValue.Builder
- All Implemented Interfaces:
AnnotationValueOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AnnotationValue
public static final class AnnotationValue.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AnnotationValue.Builder>
implements AnnotationValueOrBuilder
Value of annotation, including all types available in data schema.Protobuf type
google.cloud.visionai.v1.AnnotationValue-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Value of boolean type annotation.Value of customized struct annotation.Value of custom struct type annotation.Value of date time type annotation.Value of float type annotation.Value of geo coordinate type annotation.Value of int type annotation.Value of list type annotation.Value of any proto value.Value of string type annotation.booleanValue of boolean type annotation.com.google.protobuf.StructValue of customized struct annotation.com.google.protobuf.Struct.BuilderValue of customized struct annotation.com.google.protobuf.StructOrBuilderValue of customized struct annotation.Value of custom struct type annotation.Value of custom struct type annotation.Value of custom struct type annotation.Value of date time type annotation.com.google.protobuf.ByteStringValue of date time type annotation.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorfloatValue of float type annotation.Value of geo coordinate type annotation.Value of geo coordinate type annotation.Value of geo coordinate type annotation.longValue of int type annotation.Value of list type annotation.Value of list type annotation.Value of list type annotation.com.google.protobuf.AnyValue of any proto value.com.google.protobuf.Any.BuilderValue of any proto value.com.google.protobuf.AnyOrBuilderValue of any proto value.Value of string type annotation.com.google.protobuf.ByteStringValue of string type annotation.booleanValue of boolean type annotation.booleanValue of customized struct annotation.booleanValue of custom struct type annotation.booleanValue of date time type annotation.booleanValue of float type annotation.booleanValue of geo coordinate type annotation.booleanValue of int type annotation.booleanValue of list type annotation.booleanValue of any proto value.booleanValue of string type annotation.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCustomizedStructDataValue(com.google.protobuf.Struct value) Value of customized struct annotation.Value of custom struct type annotation.mergeFrom(AnnotationValue other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeGeoCoordinate(GeoCoordinate value) Value of geo coordinate type annotation.mergeListValue(AnnotationList value) Value of list type annotation.mergeProtoAnyValue(com.google.protobuf.Any value) Value of any proto value.setBoolValue(boolean value) Value of boolean type annotation.setCustomizedStructDataValue(com.google.protobuf.Struct value) Value of customized struct annotation.setCustomizedStructDataValue(com.google.protobuf.Struct.Builder builderForValue) Value of customized struct annotation.Value of custom struct type annotation.setCustomizedStructValue(AnnotationCustomizedStruct.Builder builderForValue) Value of custom struct type annotation.setDatetimeValue(String value) Value of date time type annotation.setDatetimeValueBytes(com.google.protobuf.ByteString value) Value of date time type annotation.setFloatValue(float value) Value of float type annotation.setGeoCoordinate(GeoCoordinate value) Value of geo coordinate type annotation.setGeoCoordinate(GeoCoordinate.Builder builderForValue) Value of geo coordinate type annotation.setIntValue(long value) Value of int type annotation.setListValue(AnnotationList value) Value of list type annotation.setListValue(AnnotationList.Builder builderForValue) Value of list type annotation.setProtoAnyValue(com.google.protobuf.Any value) Value of any proto value.setProtoAnyValue(com.google.protobuf.Any.Builder builderForValue) Value of any proto value.setStrValue(String value) Value of string type annotation.setStrValueBytes(com.google.protobuf.ByteString value) Value of string type 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<AnnotationValue.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<AnnotationValue.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<AnnotationValue.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<AnnotationValue.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AnnotationValue.Builder>
-
mergeFrom
public AnnotationValue.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<AnnotationValue.Builder>- Throws:
IOException
-
getValueCase
- Specified by:
getValueCasein interfaceAnnotationValueOrBuilder
-
clearValue
-
hasIntValue
public boolean hasIntValue()Value of int type annotation.
int64 int_value = 1;- Specified by:
hasIntValuein interfaceAnnotationValueOrBuilder- Returns:
- Whether the intValue field is set.
-
getIntValue
public long getIntValue()Value of int type annotation.
int64 int_value = 1;- Specified by:
getIntValuein interfaceAnnotationValueOrBuilder- Returns:
- The intValue.
-
setIntValue
Value of int type annotation.
int64 int_value = 1;- Parameters:
value- The intValue to set.- Returns:
- This builder for chaining.
-
clearIntValue
Value of int type annotation.
int64 int_value = 1;- Returns:
- This builder for chaining.
-
hasFloatValue
public boolean hasFloatValue()Value of float type annotation.
float float_value = 2;- Specified by:
hasFloatValuein interfaceAnnotationValueOrBuilder- Returns:
- Whether the floatValue field is set.
-
getFloatValue
public float getFloatValue()Value of float type annotation.
float float_value = 2;- Specified by:
getFloatValuein interfaceAnnotationValueOrBuilder- Returns:
- The floatValue.
-
setFloatValue
Value of float type annotation.
float float_value = 2;- Parameters:
value- The floatValue to set.- Returns:
- This builder for chaining.
-
clearFloatValue
Value of float type annotation.
float float_value = 2;- Returns:
- This builder for chaining.
-
hasStrValue
public boolean hasStrValue()Value of string type annotation.
string str_value = 3;- Specified by:
hasStrValuein interfaceAnnotationValueOrBuilder- Returns:
- Whether the strValue field is set.
-
getStrValue
Value of string type annotation.
string str_value = 3;- Specified by:
getStrValuein interfaceAnnotationValueOrBuilder- Returns:
- The strValue.
-
getStrValueBytes
public com.google.protobuf.ByteString getStrValueBytes()Value of string type annotation.
string str_value = 3;- Specified by:
getStrValueBytesin interfaceAnnotationValueOrBuilder- Returns:
- The bytes for strValue.
-
setStrValue
Value of string type annotation.
string str_value = 3;- Parameters:
value- The strValue to set.- Returns:
- This builder for chaining.
-
clearStrValue
Value of string type annotation.
string str_value = 3;- Returns:
- This builder for chaining.
-
setStrValueBytes
Value of string type annotation.
string str_value = 3;- Parameters:
value- The bytes for strValue to set.- Returns:
- This builder for chaining.
-
hasDatetimeValue
public boolean hasDatetimeValue()Value of date time type annotation.
string datetime_value = 5;- Specified by:
hasDatetimeValuein interfaceAnnotationValueOrBuilder- Returns:
- Whether the datetimeValue field is set.
-
getDatetimeValue
Value of date time type annotation.
string datetime_value = 5;- Specified by:
getDatetimeValuein interfaceAnnotationValueOrBuilder- Returns:
- The datetimeValue.
-
getDatetimeValueBytes
public com.google.protobuf.ByteString getDatetimeValueBytes()Value of date time type annotation.
string datetime_value = 5;- Specified by:
getDatetimeValueBytesin interfaceAnnotationValueOrBuilder- Returns:
- The bytes for datetimeValue.
-
setDatetimeValue
Value of date time type annotation.
string datetime_value = 5;- Parameters:
value- The datetimeValue to set.- Returns:
- This builder for chaining.
-
clearDatetimeValue
Value of date time type annotation.
string datetime_value = 5;- Returns:
- This builder for chaining.
-
setDatetimeValueBytes
Value of date time type annotation.
string datetime_value = 5;- Parameters:
value- The bytes for datetimeValue to set.- Returns:
- This builder for chaining.
-
hasGeoCoordinate
public boolean hasGeoCoordinate()Value of geo coordinate type annotation.
.google.cloud.visionai.v1.GeoCoordinate geo_coordinate = 7;- Specified by:
hasGeoCoordinatein interfaceAnnotationValueOrBuilder- Returns:
- Whether the geoCoordinate field is set.
-
getGeoCoordinate
Value of geo coordinate type annotation.
.google.cloud.visionai.v1.GeoCoordinate geo_coordinate = 7;- Specified by:
getGeoCoordinatein interfaceAnnotationValueOrBuilder- Returns:
- The geoCoordinate.
-
setGeoCoordinate
Value of geo coordinate type annotation.
.google.cloud.visionai.v1.GeoCoordinate geo_coordinate = 7; -
setGeoCoordinate
Value of geo coordinate type annotation.
.google.cloud.visionai.v1.GeoCoordinate geo_coordinate = 7; -
mergeGeoCoordinate
Value of geo coordinate type annotation.
.google.cloud.visionai.v1.GeoCoordinate geo_coordinate = 7; -
clearGeoCoordinate
Value of geo coordinate type annotation.
.google.cloud.visionai.v1.GeoCoordinate geo_coordinate = 7; -
getGeoCoordinateBuilder
Value of geo coordinate type annotation.
.google.cloud.visionai.v1.GeoCoordinate geo_coordinate = 7; -
getGeoCoordinateOrBuilder
Value of geo coordinate type annotation.
.google.cloud.visionai.v1.GeoCoordinate geo_coordinate = 7;- Specified by:
getGeoCoordinateOrBuilderin interfaceAnnotationValueOrBuilder
-
hasProtoAnyValue
public boolean hasProtoAnyValue()Value of any proto value.
.google.protobuf.Any proto_any_value = 8;- Specified by:
hasProtoAnyValuein interfaceAnnotationValueOrBuilder- Returns:
- Whether the protoAnyValue field is set.
-
getProtoAnyValue
public com.google.protobuf.Any getProtoAnyValue()Value of any proto value.
.google.protobuf.Any proto_any_value = 8;- Specified by:
getProtoAnyValuein interfaceAnnotationValueOrBuilder- Returns:
- The protoAnyValue.
-
setProtoAnyValue
Value of any proto value.
.google.protobuf.Any proto_any_value = 8; -
setProtoAnyValue
Value of any proto value.
.google.protobuf.Any proto_any_value = 8; -
mergeProtoAnyValue
Value of any proto value.
.google.protobuf.Any proto_any_value = 8; -
clearProtoAnyValue
Value of any proto value.
.google.protobuf.Any proto_any_value = 8; -
getProtoAnyValueBuilder
public com.google.protobuf.Any.Builder getProtoAnyValueBuilder()Value of any proto value.
.google.protobuf.Any proto_any_value = 8; -
getProtoAnyValueOrBuilder
public com.google.protobuf.AnyOrBuilder getProtoAnyValueOrBuilder()Value of any proto value.
.google.protobuf.Any proto_any_value = 8;- Specified by:
getProtoAnyValueOrBuilderin interfaceAnnotationValueOrBuilder
-
hasBoolValue
public boolean hasBoolValue()Value of boolean type annotation.
bool bool_value = 9;- Specified by:
hasBoolValuein interfaceAnnotationValueOrBuilder- Returns:
- Whether the boolValue field is set.
-
getBoolValue
public boolean getBoolValue()Value of boolean type annotation.
bool bool_value = 9;- Specified by:
getBoolValuein interfaceAnnotationValueOrBuilder- Returns:
- The boolValue.
-
setBoolValue
Value of boolean type annotation.
bool bool_value = 9;- Parameters:
value- The boolValue to set.- Returns:
- This builder for chaining.
-
clearBoolValue
Value of boolean type annotation.
bool bool_value = 9;- Returns:
- This builder for chaining.
-
hasCustomizedStructDataValue
public boolean hasCustomizedStructDataValue()Value of customized struct annotation. This field does not have effects. Use customized_struct_value instead for customized struct annotation.
.google.protobuf.Struct customized_struct_data_value = 10;- Specified by:
hasCustomizedStructDataValuein interfaceAnnotationValueOrBuilder- Returns:
- Whether the customizedStructDataValue field is set.
-
getCustomizedStructDataValue
public com.google.protobuf.Struct getCustomizedStructDataValue()Value of customized struct annotation. This field does not have effects. Use customized_struct_value instead for customized struct annotation.
.google.protobuf.Struct customized_struct_data_value = 10;- Specified by:
getCustomizedStructDataValuein interfaceAnnotationValueOrBuilder- Returns:
- The customizedStructDataValue.
-
setCustomizedStructDataValue
Value of customized struct annotation. This field does not have effects. Use customized_struct_value instead for customized struct annotation.
.google.protobuf.Struct customized_struct_data_value = 10; -
setCustomizedStructDataValue
public AnnotationValue.Builder setCustomizedStructDataValue(com.google.protobuf.Struct.Builder builderForValue) Value of customized struct annotation. This field does not have effects. Use customized_struct_value instead for customized struct annotation.
.google.protobuf.Struct customized_struct_data_value = 10; -
mergeCustomizedStructDataValue
Value of customized struct annotation. This field does not have effects. Use customized_struct_value instead for customized struct annotation.
.google.protobuf.Struct customized_struct_data_value = 10; -
clearCustomizedStructDataValue
Value of customized struct annotation. This field does not have effects. Use customized_struct_value instead for customized struct annotation.
.google.protobuf.Struct customized_struct_data_value = 10; -
getCustomizedStructDataValueBuilder
public com.google.protobuf.Struct.Builder getCustomizedStructDataValueBuilder()Value of customized struct annotation. This field does not have effects. Use customized_struct_value instead for customized struct annotation.
.google.protobuf.Struct customized_struct_data_value = 10; -
getCustomizedStructDataValueOrBuilder
public com.google.protobuf.StructOrBuilder getCustomizedStructDataValueOrBuilder()Value of customized struct annotation. This field does not have effects. Use customized_struct_value instead for customized struct annotation.
.google.protobuf.Struct customized_struct_data_value = 10;- Specified by:
getCustomizedStructDataValueOrBuilderin interfaceAnnotationValueOrBuilder
-
hasListValue
public boolean hasListValue()Value of list type annotation.
.google.cloud.visionai.v1.AnnotationList list_value = 11;- Specified by:
hasListValuein interfaceAnnotationValueOrBuilder- Returns:
- Whether the listValue field is set.
-
getListValue
Value of list type annotation.
.google.cloud.visionai.v1.AnnotationList list_value = 11;- Specified by:
getListValuein interfaceAnnotationValueOrBuilder- Returns:
- The listValue.
-
setListValue
Value of list type annotation.
.google.cloud.visionai.v1.AnnotationList list_value = 11; -
setListValue
Value of list type annotation.
.google.cloud.visionai.v1.AnnotationList list_value = 11; -
mergeListValue
Value of list type annotation.
.google.cloud.visionai.v1.AnnotationList list_value = 11; -
clearListValue
Value of list type annotation.
.google.cloud.visionai.v1.AnnotationList list_value = 11; -
getListValueBuilder
Value of list type annotation.
.google.cloud.visionai.v1.AnnotationList list_value = 11; -
getListValueOrBuilder
Value of list type annotation.
.google.cloud.visionai.v1.AnnotationList list_value = 11;- Specified by:
getListValueOrBuilderin interfaceAnnotationValueOrBuilder
-
hasCustomizedStructValue
public boolean hasCustomizedStructValue()Value of custom struct type annotation.
.google.cloud.visionai.v1.AnnotationCustomizedStruct customized_struct_value = 6;- Specified by:
hasCustomizedStructValuein interfaceAnnotationValueOrBuilder- Returns:
- Whether the customizedStructValue field is set.
-
getCustomizedStructValue
Value of custom struct type annotation.
.google.cloud.visionai.v1.AnnotationCustomizedStruct customized_struct_value = 6;- Specified by:
getCustomizedStructValuein interfaceAnnotationValueOrBuilder- Returns:
- The customizedStructValue.
-
setCustomizedStructValue
Value of custom struct type annotation.
.google.cloud.visionai.v1.AnnotationCustomizedStruct customized_struct_value = 6; -
setCustomizedStructValue
public AnnotationValue.Builder setCustomizedStructValue(AnnotationCustomizedStruct.Builder builderForValue) Value of custom struct type annotation.
.google.cloud.visionai.v1.AnnotationCustomizedStruct customized_struct_value = 6; -
mergeCustomizedStructValue
Value of custom struct type annotation.
.google.cloud.visionai.v1.AnnotationCustomizedStruct customized_struct_value = 6; -
clearCustomizedStructValue
Value of custom struct type annotation.
.google.cloud.visionai.v1.AnnotationCustomizedStruct customized_struct_value = 6; -
getCustomizedStructValueBuilder
Value of custom struct type annotation.
.google.cloud.visionai.v1.AnnotationCustomizedStruct customized_struct_value = 6; -
getCustomizedStructValueOrBuilder
Value of custom struct type annotation.
.google.cloud.visionai.v1.AnnotationCustomizedStruct customized_struct_value = 6;- Specified by:
getCustomizedStructValueOrBuilderin interfaceAnnotationValueOrBuilder
-