Class OperatorDefinition.AttributeDefinition (0.2.0)

public static final class OperatorDefinition.AttributeDefinition extends GeneratedMessageV3 implements OperatorDefinition.AttributeDefinitionOrBuilder

Defines an attribute of an operator.

Protobuf type google.cloud.visionai.v1.OperatorDefinition.AttributeDefinition

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > OperatorDefinition.AttributeDefinition

Static Fields

ATTRIBUTE_FIELD_NUMBER

public static final int ATTRIBUTE_FIELD_NUMBER
Field Value
Type Description
int

DEFAULT_VALUE_FIELD_NUMBER

public static final int DEFAULT_VALUE_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static OperatorDefinition.AttributeDefinition getDefaultInstance()
Returns
Type Description
OperatorDefinition.AttributeDefinition

getDescriptor()

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

newBuilder()

public static OperatorDefinition.AttributeDefinition.Builder newBuilder()
Returns
Type Description
OperatorDefinition.AttributeDefinition.Builder

newBuilder(OperatorDefinition.AttributeDefinition prototype)

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

parseDelimitedFrom(InputStream input)

public static OperatorDefinition.AttributeDefinition parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
OperatorDefinition.AttributeDefinition
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static OperatorDefinition.AttributeDefinition parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
OperatorDefinition.AttributeDefinition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static OperatorDefinition.AttributeDefinition parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
OperatorDefinition.AttributeDefinition
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static OperatorDefinition.AttributeDefinition parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
OperatorDefinition.AttributeDefinition
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static OperatorDefinition.AttributeDefinition parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
OperatorDefinition.AttributeDefinition
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<OperatorDefinition.AttributeDefinition> parser()
Returns
Type Description
Parser<AttributeDefinition>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAttribute()

public String getAttribute()

The name of the attribute.

Tentatively a-z?, e.g., max_frames_per_video, resize_height.

string attribute = 1;

Returns
Type Description
String

The attribute.

getAttributeBytes()

public ByteString getAttributeBytes()

The name of the attribute.

Tentatively a-z?, e.g., max_frames_per_video, resize_height.

string attribute = 1;

Returns
Type Description
ByteString

The bytes for attribute.

getDefaultInstanceForType()

public OperatorDefinition.AttributeDefinition getDefaultInstanceForType()
Returns
Type Description
OperatorDefinition.AttributeDefinition

getDefaultValue()

public AttributeValue getDefaultValue()

The default value for the attribute.

.google.cloud.visionai.v1.AttributeValue default_value = 3;

Returns
Type Description
AttributeValue

The defaultValue.

getDefaultValueOrBuilder()

public AttributeValueOrBuilder getDefaultValueOrBuilder()

The default value for the attribute.

.google.cloud.visionai.v1.AttributeValue default_value = 3;

Returns
Type Description
AttributeValueOrBuilder

getParserForType()

public Parser<OperatorDefinition.AttributeDefinition> getParserForType()
Returns
Type Description
Parser<AttributeDefinition>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getType()

public String getType()

The type of this attribute.

See attribute_value.proto for possibilities.

string type = 2;

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

The type of this attribute.

See attribute_value.proto for possibilities.

string type = 2;

Returns
Type Description
ByteString

The bytes for type.

hasDefaultValue()

public boolean hasDefaultValue()

The default value for the attribute.

.google.cloud.visionai.v1.AttributeValue default_value = 3;

Returns
Type Description
boolean

Whether the defaultValue field is set.

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 OperatorDefinition.AttributeDefinition.Builder newBuilderForType()
Returns
Type Description
OperatorDefinition.AttributeDefinition.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public OperatorDefinition.AttributeDefinition.Builder toBuilder()
Returns
Type Description
OperatorDefinition.AttributeDefinition.Builder

writeTo(CodedOutputStream output)

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