Class ResourceAnnotations.Builder (0.1.0)

public static final class ResourceAnnotations.Builder extends GeneratedMessageV3.Builder<ResourceAnnotations.Builder> implements ResourceAnnotationsOrBuilder

Message describing general annotation for resources.

Protobuf type google.cloud.visionai.v1.ResourceAnnotations

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllApplicationAnnotations(Iterable<? extends StreamAnnotation> values)

public ResourceAnnotations.Builder addAllApplicationAnnotations(Iterable<? extends StreamAnnotation> values)

Annotations that will be applied to the whole application.

repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.visionai.v1.StreamAnnotation>
Returns
Type Description
ResourceAnnotations.Builder

addAllNodeAnnotations(Iterable<? extends ApplicationNodeAnnotation> values)

public ResourceAnnotations.Builder addAllNodeAnnotations(Iterable<? extends ApplicationNodeAnnotation> values)

Annotations that will be applied to the specific node of the application. If the same type of the annotations is applied to both application and node, the node annotation will be added in addition to the global application one. For example, if there is one active zone annotation for the whole application and one active zone annotation for the Occupancy Analytic processor, then the Occupancy Analytic processor will have two active zones defined.

repeated .google.cloud.visionai.v1.ApplicationNodeAnnotation node_annotations = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.visionai.v1.ApplicationNodeAnnotation>
Returns
Type Description
ResourceAnnotations.Builder

addApplicationAnnotations(StreamAnnotation value)

public ResourceAnnotations.Builder addApplicationAnnotations(StreamAnnotation value)

Annotations that will be applied to the whole application.

repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 1;

Parameter
Name Description
value StreamAnnotation
Returns
Type Description
ResourceAnnotations.Builder

addApplicationAnnotations(StreamAnnotation.Builder builderForValue)

public ResourceAnnotations.Builder addApplicationAnnotations(StreamAnnotation.Builder builderForValue)

Annotations that will be applied to the whole application.

repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 1;

Parameter
Name Description
builderForValue StreamAnnotation.Builder
Returns
Type Description
ResourceAnnotations.Builder

addApplicationAnnotations(int index, StreamAnnotation value)

public ResourceAnnotations.Builder addApplicationAnnotations(int index, StreamAnnotation value)

Annotations that will be applied to the whole application.

repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 1;

Parameters
Name Description
index int
value StreamAnnotation
Returns
Type Description
ResourceAnnotations.Builder

addApplicationAnnotations(int index, StreamAnnotation.Builder builderForValue)

public ResourceAnnotations.Builder addApplicationAnnotations(int index, StreamAnnotation.Builder builderForValue)

Annotations that will be applied to the whole application.

repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 1;

Parameters
Name Description
index int
builderForValue StreamAnnotation.Builder
Returns
Type Description
ResourceAnnotations.Builder

addApplicationAnnotationsBuilder()

public StreamAnnotation.Builder addApplicationAnnotationsBuilder()

Annotations that will be applied to the whole application.

repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 1;

Returns
Type Description
StreamAnnotation.Builder

addApplicationAnnotationsBuilder(int index)

public StreamAnnotation.Builder addApplicationAnnotationsBuilder(int index)

Annotations that will be applied to the whole application.

repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 1;

Parameter
Name Description
index int
Returns
Type Description
StreamAnnotation.Builder

addNodeAnnotations(ApplicationNodeAnnotation value)

public ResourceAnnotations.Builder addNodeAnnotations(ApplicationNodeAnnotation value)

Annotations that will be applied to the specific node of the application. If the same type of the annotations is applied to both application and node, the node annotation will be added in addition to the global application one. For example, if there is one active zone annotation for the whole application and one active zone annotation for the Occupancy Analytic processor, then the Occupancy Analytic processor will have two active zones defined.

repeated .google.cloud.visionai.v1.ApplicationNodeAnnotation node_annotations = 2;

Parameter
Name Description
value ApplicationNodeAnnotation
Returns
Type Description
ResourceAnnotations.Builder

addNodeAnnotations(ApplicationNodeAnnotation.Builder builderForValue)

public ResourceAnnotations.Builder addNodeAnnotations(ApplicationNodeAnnotation.Builder builderForValue)

Annotations that will be applied to the specific node of the application. If the same type of the annotations is applied to both application and node, the node annotation will be added in addition to the global application one. For example, if there is one active zone annotation for the whole application and one active zone annotation for the Occupancy Analytic processor, then the Occupancy Analytic processor will have two active zones defined.

repeated .google.cloud.visionai.v1.ApplicationNodeAnnotation node_annotations = 2;

Parameter
Name Description
builderForValue ApplicationNodeAnnotation.Builder
Returns
Type Description
ResourceAnnotations.Builder

addNodeAnnotations(int index, ApplicationNodeAnnotation value)

public ResourceAnnotations.Builder addNodeAnnotations(int index, ApplicationNodeAnnotation value)

Annotations that will be applied to the specific node of the application. If the same type of the annotations is applied to both application and node, the node annotation will be added in addition to the global application one. For example, if there is one active zone annotation for the whole application and one active zone annotation for the Occupancy Analytic processor, then the Occupancy Analytic processor will have two active zones defined.

repeated .google.cloud.visionai.v1.ApplicationNodeAnnotation node_annotations = 2;

Parameters
Name Description
index int
value ApplicationNodeAnnotation
Returns
Type Description
ResourceAnnotations.Builder

addNodeAnnotations(int index, ApplicationNodeAnnotation.Builder builderForValue)

public ResourceAnnotations.Builder addNodeAnnotations(int index, ApplicationNodeAnnotation.Builder builderForValue)

Annotations that will be applied to the specific node of the application. If the same type of the annotations is applied to both application and node, the node annotation will be added in addition to the global application one. For example, if there is one active zone annotation for the whole application and one active zone annotation for the Occupancy Analytic processor, then the Occupancy Analytic processor will have two active zones defined.

repeated .google.cloud.visionai.v1.ApplicationNodeAnnotation node_annotations = 2;

Parameters
Name Description
index int
builderForValue ApplicationNodeAnnotation.Builder
Returns
Type Description
ResourceAnnotations.Builder

addNodeAnnotationsBuilder()

public ApplicationNodeAnnotation.Builder addNodeAnnotationsBuilder()

Annotations that will be applied to the specific node of the application. If the same type of the annotations is applied to both application and node, the node annotation will be added in addition to the global application one. For example, if there is one active zone annotation for the whole application and one active zone annotation for the Occupancy Analytic processor, then the Occupancy Analytic processor will have two active zones defined.

repeated .google.cloud.visionai.v1.ApplicationNodeAnnotation node_annotations = 2;

Returns
Type Description
ApplicationNodeAnnotation.Builder

addNodeAnnotationsBuilder(int index)

public ApplicationNodeAnnotation.Builder addNodeAnnotationsBuilder(int index)

Annotations that will be applied to the specific node of the application. If the same type of the annotations is applied to both application and node, the node annotation will be added in addition to the global application one. For example, if there is one active zone annotation for the whole application and one active zone annotation for the Occupancy Analytic processor, then the Occupancy Analytic processor will have two active zones defined.

repeated .google.cloud.visionai.v1.ApplicationNodeAnnotation node_annotations = 2;

Parameter
Name Description
index int
Returns
Type Description
ApplicationNodeAnnotation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResourceAnnotations.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ResourceAnnotations.Builder
Overrides

build()

public ResourceAnnotations build()
Returns
Type Description
ResourceAnnotations

buildPartial()

public ResourceAnnotations buildPartial()
Returns
Type Description
ResourceAnnotations

clear()

public ResourceAnnotations.Builder clear()
Returns
Type Description
ResourceAnnotations.Builder
Overrides

clearApplicationAnnotations()

public ResourceAnnotations.Builder clearApplicationAnnotations()

Annotations that will be applied to the whole application.

repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 1;

Returns
Type Description
ResourceAnnotations.Builder

clearField(Descriptors.FieldDescriptor field)

public ResourceAnnotations.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ResourceAnnotations.Builder
Overrides

clearNodeAnnotations()

public ResourceAnnotations.Builder clearNodeAnnotations()

Annotations that will be applied to the specific node of the application. If the same type of the annotations is applied to both application and node, the node annotation will be added in addition to the global application one. For example, if there is one active zone annotation for the whole application and one active zone annotation for the Occupancy Analytic processor, then the Occupancy Analytic processor will have two active zones defined.

repeated .google.cloud.visionai.v1.ApplicationNodeAnnotation node_annotations = 2;

Returns
Type Description
ResourceAnnotations.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ResourceAnnotations.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ResourceAnnotations.Builder
Overrides

clone()

public ResourceAnnotations.Builder clone()
Returns
Type Description
ResourceAnnotations.Builder
Overrides

getApplicationAnnotations(int index)

public StreamAnnotation getApplicationAnnotations(int index)

Annotations that will be applied to the whole application.

repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 1;

Parameter
Name Description
index int
Returns
Type Description
StreamAnnotation

getApplicationAnnotationsBuilder(int index)

public StreamAnnotation.Builder getApplicationAnnotationsBuilder(int index)

Annotations that will be applied to the whole application.

repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 1;

Parameter
Name Description
index int
Returns
Type Description
StreamAnnotation.Builder

getApplicationAnnotationsBuilderList()

public List<StreamAnnotation.Builder> getApplicationAnnotationsBuilderList()

Annotations that will be applied to the whole application.

repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 1;

Returns
Type Description
List<Builder>

getApplicationAnnotationsCount()

public int getApplicationAnnotationsCount()

Annotations that will be applied to the whole application.

repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 1;

Returns
Type Description
int

getApplicationAnnotationsList()

public List<StreamAnnotation> getApplicationAnnotationsList()

Annotations that will be applied to the whole application.

repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 1;

Returns
Type Description
List<StreamAnnotation>

getApplicationAnnotationsOrBuilder(int index)

public StreamAnnotationOrBuilder getApplicationAnnotationsOrBuilder(int index)

Annotations that will be applied to the whole application.

repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 1;

Parameter
Name Description
index int
Returns
Type Description
StreamAnnotationOrBuilder

getApplicationAnnotationsOrBuilderList()

public List<? extends StreamAnnotationOrBuilder> getApplicationAnnotationsOrBuilderList()

Annotations that will be applied to the whole application.

repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 1;

Returns
Type Description
List<? extends com.google.cloud.visionai.v1.StreamAnnotationOrBuilder>

getDefaultInstanceForType()

public ResourceAnnotations getDefaultInstanceForType()
Returns
Type Description
ResourceAnnotations

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNodeAnnotations(int index)

public ApplicationNodeAnnotation getNodeAnnotations(int index)

Annotations that will be applied to the specific node of the application. If the same type of the annotations is applied to both application and node, the node annotation will be added in addition to the global application one. For example, if there is one active zone annotation for the whole application and one active zone annotation for the Occupancy Analytic processor, then the Occupancy Analytic processor will have two active zones defined.

repeated .google.cloud.visionai.v1.ApplicationNodeAnnotation node_annotations = 2;

Parameter
Name Description
index int
Returns
Type Description
ApplicationNodeAnnotation

getNodeAnnotationsBuilder(int index)

public ApplicationNodeAnnotation.Builder getNodeAnnotationsBuilder(int index)

Annotations that will be applied to the specific node of the application. If the same type of the annotations is applied to both application and node, the node annotation will be added in addition to the global application one. For example, if there is one active zone annotation for the whole application and one active zone annotation for the Occupancy Analytic processor, then the Occupancy Analytic processor will have two active zones defined.

repeated .google.cloud.visionai.v1.ApplicationNodeAnnotation node_annotations = 2;

Parameter
Name Description
index int
Returns
Type Description
ApplicationNodeAnnotation.Builder

getNodeAnnotationsBuilderList()

public List<ApplicationNodeAnnotation.Builder> getNodeAnnotationsBuilderList()

Annotations that will be applied to the specific node of the application. If the same type of the annotations is applied to both application and node, the node annotation will be added in addition to the global application one. For example, if there is one active zone annotation for the whole application and one active zone annotation for the Occupancy Analytic processor, then the Occupancy Analytic processor will have two active zones defined.

repeated .google.cloud.visionai.v1.ApplicationNodeAnnotation node_annotations = 2;

Returns
Type Description
List<Builder>

getNodeAnnotationsCount()

public int getNodeAnnotationsCount()

Annotations that will be applied to the specific node of the application. If the same type of the annotations is applied to both application and node, the node annotation will be added in addition to the global application one. For example, if there is one active zone annotation for the whole application and one active zone annotation for the Occupancy Analytic processor, then the Occupancy Analytic processor will have two active zones defined.

repeated .google.cloud.visionai.v1.ApplicationNodeAnnotation node_annotations = 2;

Returns
Type Description
int

getNodeAnnotationsList()

public List<ApplicationNodeAnnotation> getNodeAnnotationsList()

Annotations that will be applied to the specific node of the application. If the same type of the annotations is applied to both application and node, the node annotation will be added in addition to the global application one. For example, if there is one active zone annotation for the whole application and one active zone annotation for the Occupancy Analytic processor, then the Occupancy Analytic processor will have two active zones defined.

repeated .google.cloud.visionai.v1.ApplicationNodeAnnotation node_annotations = 2;

Returns
Type Description
List<ApplicationNodeAnnotation>

getNodeAnnotationsOrBuilder(int index)

public ApplicationNodeAnnotationOrBuilder getNodeAnnotationsOrBuilder(int index)

Annotations that will be applied to the specific node of the application. If the same type of the annotations is applied to both application and node, the node annotation will be added in addition to the global application one. For example, if there is one active zone annotation for the whole application and one active zone annotation for the Occupancy Analytic processor, then the Occupancy Analytic processor will have two active zones defined.

repeated .google.cloud.visionai.v1.ApplicationNodeAnnotation node_annotations = 2;

Parameter
Name Description
index int
Returns
Type Description
ApplicationNodeAnnotationOrBuilder

getNodeAnnotationsOrBuilderList()

public List<? extends ApplicationNodeAnnotationOrBuilder> getNodeAnnotationsOrBuilderList()

Annotations that will be applied to the specific node of the application. If the same type of the annotations is applied to both application and node, the node annotation will be added in addition to the global application one. For example, if there is one active zone annotation for the whole application and one active zone annotation for the Occupancy Analytic processor, then the Occupancy Analytic processor will have two active zones defined.

repeated .google.cloud.visionai.v1.ApplicationNodeAnnotation node_annotations = 2;

Returns
Type Description
List<? extends com.google.cloud.visionai.v1.ApplicationNodeAnnotationOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ResourceAnnotations other)

public ResourceAnnotations.Builder mergeFrom(ResourceAnnotations other)
Parameter
Name Description
other ResourceAnnotations
Returns
Type Description
ResourceAnnotations.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ResourceAnnotations.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceAnnotations.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ResourceAnnotations.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ResourceAnnotations.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResourceAnnotations.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ResourceAnnotations.Builder
Overrides

removeApplicationAnnotations(int index)

public ResourceAnnotations.Builder removeApplicationAnnotations(int index)

Annotations that will be applied to the whole application.

repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 1;

Parameter
Name Description
index int
Returns
Type Description
ResourceAnnotations.Builder

removeNodeAnnotations(int index)

public ResourceAnnotations.Builder removeNodeAnnotations(int index)

Annotations that will be applied to the specific node of the application. If the same type of the annotations is applied to both application and node, the node annotation will be added in addition to the global application one. For example, if there is one active zone annotation for the whole application and one active zone annotation for the Occupancy Analytic processor, then the Occupancy Analytic processor will have two active zones defined.

repeated .google.cloud.visionai.v1.ApplicationNodeAnnotation node_annotations = 2;

Parameter
Name Description
index int
Returns
Type Description
ResourceAnnotations.Builder

setApplicationAnnotations(int index, StreamAnnotation value)

public ResourceAnnotations.Builder setApplicationAnnotations(int index, StreamAnnotation value)

Annotations that will be applied to the whole application.

repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 1;

Parameters
Name Description
index int
value StreamAnnotation
Returns
Type Description
ResourceAnnotations.Builder

setApplicationAnnotations(int index, StreamAnnotation.Builder builderForValue)

public ResourceAnnotations.Builder setApplicationAnnotations(int index, StreamAnnotation.Builder builderForValue)

Annotations that will be applied to the whole application.

repeated .google.cloud.visionai.v1.StreamAnnotation application_annotations = 1;

Parameters
Name Description
index int
builderForValue StreamAnnotation.Builder
Returns
Type Description
ResourceAnnotations.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ResourceAnnotations.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ResourceAnnotations.Builder
Overrides

setNodeAnnotations(int index, ApplicationNodeAnnotation value)

public ResourceAnnotations.Builder setNodeAnnotations(int index, ApplicationNodeAnnotation value)

Annotations that will be applied to the specific node of the application. If the same type of the annotations is applied to both application and node, the node annotation will be added in addition to the global application one. For example, if there is one active zone annotation for the whole application and one active zone annotation for the Occupancy Analytic processor, then the Occupancy Analytic processor will have two active zones defined.

repeated .google.cloud.visionai.v1.ApplicationNodeAnnotation node_annotations = 2;

Parameters
Name Description
index int
value ApplicationNodeAnnotation
Returns
Type Description
ResourceAnnotations.Builder

setNodeAnnotations(int index, ApplicationNodeAnnotation.Builder builderForValue)

public ResourceAnnotations.Builder setNodeAnnotations(int index, ApplicationNodeAnnotation.Builder builderForValue)

Annotations that will be applied to the specific node of the application. If the same type of the annotations is applied to both application and node, the node annotation will be added in addition to the global application one. For example, if there is one active zone annotation for the whole application and one active zone annotation for the Occupancy Analytic processor, then the Occupancy Analytic processor will have two active zones defined.

repeated .google.cloud.visionai.v1.ApplicationNodeAnnotation node_annotations = 2;

Parameters
Name Description
index int
builderForValue ApplicationNodeAnnotation.Builder
Returns
Type Description
ResourceAnnotations.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ResourceAnnotations.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ResourceAnnotations.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ResourceAnnotations.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ResourceAnnotations.Builder
Overrides