Package com.cognite.client.dto
Class Annotation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>
-
- com.cognite.client.dto.Annotation.Builder
-
- All Implemented Interfaces:
AnnotationOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Annotation
public static final class Annotation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder> implements AnnotationOrBuilder
Protobuf typecom.cognite.beam.proto.Annotation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Annotation.Builder
addAllEntities(Iterable<? extends Struct> values)
repeated .google.protobuf.Struct entities = 3;
Annotation.Builder
addEntities(int index, Struct value)
repeated .google.protobuf.Struct entities = 3;
Annotation.Builder
addEntities(int index, Struct.Builder builderForValue)
repeated .google.protobuf.Struct entities = 3;
Annotation.Builder
addEntities(Struct value)
repeated .google.protobuf.Struct entities = 3;
Annotation.Builder
addEntities(Struct.Builder builderForValue)
repeated .google.protobuf.Struct entities = 3;
Struct.Builder
addEntitiesBuilder()
repeated .google.protobuf.Struct entities = 3;
Struct.Builder
addEntitiesBuilder(int index)
repeated .google.protobuf.Struct entities = 3;
Annotation.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Annotation
build()
Annotation
buildPartial()
Annotation.Builder
clear()
Annotation.Builder
clearBoundingBox()
.com.cognite.beam.proto.BoundingBox boundingBox = 1;
Annotation.Builder
clearConfidence()
.google.protobuf.DoubleValue confidence = 4;
Annotation.Builder
clearEntities()
repeated .google.protobuf.Struct entities = 3;
Annotation.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Annotation.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Annotation.Builder
clearText()
.google.protobuf.StringValue text = 2;
Annotation.Builder
clearType()
.google.protobuf.StringValue type = 5;
Annotation.Builder
clone()
BoundingBox
getBoundingBox()
.com.cognite.beam.proto.BoundingBox boundingBox = 1;
BoundingBox.Builder
getBoundingBoxBuilder()
.com.cognite.beam.proto.BoundingBox boundingBox = 1;
BoundingBoxOrBuilder
getBoundingBoxOrBuilder()
.com.cognite.beam.proto.BoundingBox boundingBox = 1;
DoubleValue
getConfidence()
.google.protobuf.DoubleValue confidence = 4;
DoubleValue.Builder
getConfidenceBuilder()
.google.protobuf.DoubleValue confidence = 4;
DoubleValueOrBuilder
getConfidenceOrBuilder()
.google.protobuf.DoubleValue confidence = 4;
Annotation
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Struct
getEntities(int index)
repeated .google.protobuf.Struct entities = 3;
Struct.Builder
getEntitiesBuilder(int index)
repeated .google.protobuf.Struct entities = 3;
List<Struct.Builder>
getEntitiesBuilderList()
repeated .google.protobuf.Struct entities = 3;
int
getEntitiesCount()
repeated .google.protobuf.Struct entities = 3;
List<Struct>
getEntitiesList()
repeated .google.protobuf.Struct entities = 3;
StructOrBuilder
getEntitiesOrBuilder(int index)
repeated .google.protobuf.Struct entities = 3;
List<? extends StructOrBuilder>
getEntitiesOrBuilderList()
repeated .google.protobuf.Struct entities = 3;
StringValue
getText()
.google.protobuf.StringValue text = 2;
StringValue.Builder
getTextBuilder()
.google.protobuf.StringValue text = 2;
StringValueOrBuilder
getTextOrBuilder()
.google.protobuf.StringValue text = 2;
StringValue
getType()
.google.protobuf.StringValue type = 5;
StringValue.Builder
getTypeBuilder()
.google.protobuf.StringValue type = 5;
StringValueOrBuilder
getTypeOrBuilder()
.google.protobuf.StringValue type = 5;
boolean
hasBoundingBox()
.com.cognite.beam.proto.BoundingBox boundingBox = 1;
boolean
hasConfidence()
.google.protobuf.DoubleValue confidence = 4;
boolean
hasText()
.google.protobuf.StringValue text = 2;
boolean
hasType()
.google.protobuf.StringValue type = 5;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Annotation.Builder
mergeBoundingBox(BoundingBox value)
.com.cognite.beam.proto.BoundingBox boundingBox = 1;
Annotation.Builder
mergeConfidence(DoubleValue value)
.google.protobuf.DoubleValue confidence = 4;
Annotation.Builder
mergeFrom(Annotation other)
Annotation.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Annotation.Builder
mergeFrom(com.google.protobuf.Message other)
Annotation.Builder
mergeText(StringValue value)
.google.protobuf.StringValue text = 2;
Annotation.Builder
mergeType(StringValue value)
.google.protobuf.StringValue type = 5;
Annotation.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Annotation.Builder
removeEntities(int index)
repeated .google.protobuf.Struct entities = 3;
Annotation.Builder
setBoundingBox(BoundingBox value)
.com.cognite.beam.proto.BoundingBox boundingBox = 1;
Annotation.Builder
setBoundingBox(BoundingBox.Builder builderForValue)
.com.cognite.beam.proto.BoundingBox boundingBox = 1;
Annotation.Builder
setConfidence(DoubleValue value)
.google.protobuf.DoubleValue confidence = 4;
Annotation.Builder
setConfidence(DoubleValue.Builder builderForValue)
.google.protobuf.DoubleValue confidence = 4;
Annotation.Builder
setEntities(int index, Struct value)
repeated .google.protobuf.Struct entities = 3;
Annotation.Builder
setEntities(int index, Struct.Builder builderForValue)
repeated .google.protobuf.Struct entities = 3;
Annotation.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Annotation.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Annotation.Builder
setText(StringValue value)
.google.protobuf.StringValue text = 2;
Annotation.Builder
setText(StringValue.Builder builderForValue)
.google.protobuf.StringValue text = 2;
Annotation.Builder
setType(StringValue value)
.google.protobuf.StringValue type = 5;
Annotation.Builder
setType(StringValue.Builder builderForValue)
.google.protobuf.StringValue type = 5;
Annotation.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>
-
clear
public Annotation.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>
-
getDefaultInstanceForType
public Annotation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Annotation build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Annotation buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Annotation.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>
-
setField
public Annotation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>
-
clearField
public Annotation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>
-
clearOneof
public Annotation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>
-
setRepeatedField
public Annotation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>
-
addRepeatedField
public Annotation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>
-
mergeFrom
public Annotation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Annotation.Builder>
-
mergeFrom
public Annotation.Builder mergeFrom(Annotation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>
-
mergeFrom
public Annotation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Annotation.Builder>
- Throws:
IOException
-
hasBoundingBox
public boolean hasBoundingBox()
.com.cognite.beam.proto.BoundingBox boundingBox = 1;
- Specified by:
hasBoundingBox
in interfaceAnnotationOrBuilder
- Returns:
- Whether the boundingBox field is set.
-
getBoundingBox
public BoundingBox getBoundingBox()
.com.cognite.beam.proto.BoundingBox boundingBox = 1;
- Specified by:
getBoundingBox
in interfaceAnnotationOrBuilder
- Returns:
- The boundingBox.
-
setBoundingBox
public Annotation.Builder setBoundingBox(BoundingBox value)
.com.cognite.beam.proto.BoundingBox boundingBox = 1;
-
setBoundingBox
public Annotation.Builder setBoundingBox(BoundingBox.Builder builderForValue)
.com.cognite.beam.proto.BoundingBox boundingBox = 1;
-
mergeBoundingBox
public Annotation.Builder mergeBoundingBox(BoundingBox value)
.com.cognite.beam.proto.BoundingBox boundingBox = 1;
-
clearBoundingBox
public Annotation.Builder clearBoundingBox()
.com.cognite.beam.proto.BoundingBox boundingBox = 1;
-
getBoundingBoxBuilder
public BoundingBox.Builder getBoundingBoxBuilder()
.com.cognite.beam.proto.BoundingBox boundingBox = 1;
-
getBoundingBoxOrBuilder
public BoundingBoxOrBuilder getBoundingBoxOrBuilder()
.com.cognite.beam.proto.BoundingBox boundingBox = 1;
- Specified by:
getBoundingBoxOrBuilder
in interfaceAnnotationOrBuilder
-
hasText
public boolean hasText()
.google.protobuf.StringValue text = 2;
- Specified by:
hasText
in interfaceAnnotationOrBuilder
- Returns:
- Whether the text field is set.
-
getText
public StringValue getText()
.google.protobuf.StringValue text = 2;
- Specified by:
getText
in interfaceAnnotationOrBuilder
- Returns:
- The text.
-
setText
public Annotation.Builder setText(StringValue value)
.google.protobuf.StringValue text = 2;
-
setText
public Annotation.Builder setText(StringValue.Builder builderForValue)
.google.protobuf.StringValue text = 2;
-
mergeText
public Annotation.Builder mergeText(StringValue value)
.google.protobuf.StringValue text = 2;
-
clearText
public Annotation.Builder clearText()
.google.protobuf.StringValue text = 2;
-
getTextBuilder
public StringValue.Builder getTextBuilder()
.google.protobuf.StringValue text = 2;
-
getTextOrBuilder
public StringValueOrBuilder getTextOrBuilder()
.google.protobuf.StringValue text = 2;
- Specified by:
getTextOrBuilder
in interfaceAnnotationOrBuilder
-
getEntitiesList
public List<Struct> getEntitiesList()
repeated .google.protobuf.Struct entities = 3;
- Specified by:
getEntitiesList
in interfaceAnnotationOrBuilder
-
getEntitiesCount
public int getEntitiesCount()
repeated .google.protobuf.Struct entities = 3;
- Specified by:
getEntitiesCount
in interfaceAnnotationOrBuilder
-
getEntities
public Struct getEntities(int index)
repeated .google.protobuf.Struct entities = 3;
- Specified by:
getEntities
in interfaceAnnotationOrBuilder
-
setEntities
public Annotation.Builder setEntities(int index, Struct value)
repeated .google.protobuf.Struct entities = 3;
-
setEntities
public Annotation.Builder setEntities(int index, Struct.Builder builderForValue)
repeated .google.protobuf.Struct entities = 3;
-
addEntities
public Annotation.Builder addEntities(Struct value)
repeated .google.protobuf.Struct entities = 3;
-
addEntities
public Annotation.Builder addEntities(int index, Struct value)
repeated .google.protobuf.Struct entities = 3;
-
addEntities
public Annotation.Builder addEntities(Struct.Builder builderForValue)
repeated .google.protobuf.Struct entities = 3;
-
addEntities
public Annotation.Builder addEntities(int index, Struct.Builder builderForValue)
repeated .google.protobuf.Struct entities = 3;
-
addAllEntities
public Annotation.Builder addAllEntities(Iterable<? extends Struct> values)
repeated .google.protobuf.Struct entities = 3;
-
clearEntities
public Annotation.Builder clearEntities()
repeated .google.protobuf.Struct entities = 3;
-
removeEntities
public Annotation.Builder removeEntities(int index)
repeated .google.protobuf.Struct entities = 3;
-
getEntitiesBuilder
public Struct.Builder getEntitiesBuilder(int index)
repeated .google.protobuf.Struct entities = 3;
-
getEntitiesOrBuilder
public StructOrBuilder getEntitiesOrBuilder(int index)
repeated .google.protobuf.Struct entities = 3;
- Specified by:
getEntitiesOrBuilder
in interfaceAnnotationOrBuilder
-
getEntitiesOrBuilderList
public List<? extends StructOrBuilder> getEntitiesOrBuilderList()
repeated .google.protobuf.Struct entities = 3;
- Specified by:
getEntitiesOrBuilderList
in interfaceAnnotationOrBuilder
-
addEntitiesBuilder
public Struct.Builder addEntitiesBuilder()
repeated .google.protobuf.Struct entities = 3;
-
addEntitiesBuilder
public Struct.Builder addEntitiesBuilder(int index)
repeated .google.protobuf.Struct entities = 3;
-
getEntitiesBuilderList
public List<Struct.Builder> getEntitiesBuilderList()
repeated .google.protobuf.Struct entities = 3;
-
hasConfidence
public boolean hasConfidence()
.google.protobuf.DoubleValue confidence = 4;
- Specified by:
hasConfidence
in interfaceAnnotationOrBuilder
- Returns:
- Whether the confidence field is set.
-
getConfidence
public DoubleValue getConfidence()
.google.protobuf.DoubleValue confidence = 4;
- Specified by:
getConfidence
in interfaceAnnotationOrBuilder
- Returns:
- The confidence.
-
setConfidence
public Annotation.Builder setConfidence(DoubleValue value)
.google.protobuf.DoubleValue confidence = 4;
-
setConfidence
public Annotation.Builder setConfidence(DoubleValue.Builder builderForValue)
.google.protobuf.DoubleValue confidence = 4;
-
mergeConfidence
public Annotation.Builder mergeConfidence(DoubleValue value)
.google.protobuf.DoubleValue confidence = 4;
-
clearConfidence
public Annotation.Builder clearConfidence()
.google.protobuf.DoubleValue confidence = 4;
-
getConfidenceBuilder
public DoubleValue.Builder getConfidenceBuilder()
.google.protobuf.DoubleValue confidence = 4;
-
getConfidenceOrBuilder
public DoubleValueOrBuilder getConfidenceOrBuilder()
.google.protobuf.DoubleValue confidence = 4;
- Specified by:
getConfidenceOrBuilder
in interfaceAnnotationOrBuilder
-
hasType
public boolean hasType()
.google.protobuf.StringValue type = 5;
- Specified by:
hasType
in interfaceAnnotationOrBuilder
- Returns:
- Whether the type field is set.
-
getType
public StringValue getType()
.google.protobuf.StringValue type = 5;
- Specified by:
getType
in interfaceAnnotationOrBuilder
- Returns:
- The type.
-
setType
public Annotation.Builder setType(StringValue value)
.google.protobuf.StringValue type = 5;
-
setType
public Annotation.Builder setType(StringValue.Builder builderForValue)
.google.protobuf.StringValue type = 5;
-
mergeType
public Annotation.Builder mergeType(StringValue value)
.google.protobuf.StringValue type = 5;
-
clearType
public Annotation.Builder clearType()
.google.protobuf.StringValue type = 5;
-
getTypeBuilder
public StringValue.Builder getTypeBuilder()
.google.protobuf.StringValue type = 5;
-
getTypeOrBuilder
public StringValueOrBuilder getTypeOrBuilder()
.google.protobuf.StringValue type = 5;
- Specified by:
getTypeOrBuilder
in interfaceAnnotationOrBuilder
-
setUnknownFields
public final Annotation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>
-
mergeUnknownFields
public final Annotation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>
-
-