Class ResourceAnnotations (0.11.0)

public final class ResourceAnnotations extends GeneratedMessageV3 implements ResourceAnnotationsOrBuilder

Message describing general annotation for resources.

Protobuf type google.cloud.visionai.v1.ResourceAnnotations

Static Fields

APPLICATION_ANNOTATIONS_FIELD_NUMBER

public static final int APPLICATION_ANNOTATIONS_FIELD_NUMBER
Field Value
Type Description
int

NODE_ANNOTATIONS_FIELD_NUMBER

public static final int NODE_ANNOTATIONS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ResourceAnnotations getDefaultInstance()
Returns
Type Description
ResourceAnnotations

getDescriptor()

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

newBuilder()

public static ResourceAnnotations.Builder newBuilder()
Returns
Type Description
ResourceAnnotations.Builder

newBuilder(ResourceAnnotations prototype)

public static ResourceAnnotations.Builder newBuilder(ResourceAnnotations prototype)
Parameter
Name Description
prototype ResourceAnnotations
Returns
Type Description
ResourceAnnotations.Builder

parseDelimitedFrom(InputStream input)

public static ResourceAnnotations parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ResourceAnnotations
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourceAnnotations parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceAnnotations
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ResourceAnnotations parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ResourceAnnotations
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ResourceAnnotations parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceAnnotations
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ResourceAnnotations parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ResourceAnnotations
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ResourceAnnotations parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceAnnotations
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ResourceAnnotations parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ResourceAnnotations
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourceAnnotations parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceAnnotations
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ResourceAnnotations parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ResourceAnnotations
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ResourceAnnotations parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceAnnotations
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ResourceAnnotations parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ResourceAnnotations
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ResourceAnnotations parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResourceAnnotations
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ResourceAnnotations> parser()
Returns
Type Description
Parser<ResourceAnnotations>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

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

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

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>

getParserForType()

public Parser<ResourceAnnotations> getParserForType()
Returns
Type Description
Parser<ResourceAnnotations>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ResourceAnnotations.Builder newBuilderForType()
Returns
Type Description
ResourceAnnotations.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ResourceAnnotations.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ResourceAnnotations.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ResourceAnnotations.Builder toBuilder()
Returns
Type Description
ResourceAnnotations.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException