Class OperatorDefinition.AttributeDefinition.Builder (0.5.0)

public static final class OperatorDefinition.AttributeDefinition.Builder extends GeneratedMessageV3.Builder<OperatorDefinition.AttributeDefinition.Builder> implements OperatorDefinition.AttributeDefinitionOrBuilder

Defines an attribute of an operator.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

public OperatorDefinition.AttributeDefinition.Builder clear()
Returns
Type Description
OperatorDefinition.AttributeDefinition.Builder
Overrides

clearAttribute()

public OperatorDefinition.AttributeDefinition.Builder clearAttribute()

The name of the attribute.

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

string attribute = 1;

Returns
Type Description
OperatorDefinition.AttributeDefinition.Builder

This builder for chaining.

clearDefaultValue()

public OperatorDefinition.AttributeDefinition.Builder clearDefaultValue()

The default value for the attribute.

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

Returns
Type Description
OperatorDefinition.AttributeDefinition.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearType()

public OperatorDefinition.AttributeDefinition.Builder clearType()

The type of this attribute.

See attribute_value.proto for possibilities.

string type = 2;

Returns
Type Description
OperatorDefinition.AttributeDefinition.Builder

This builder for chaining.

clone()

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

getDefaultValueBuilder()

public AttributeValue.Builder getDefaultValueBuilder()

The default value for the attribute.

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

Returns
Type Description
AttributeValue.Builder

getDefaultValueOrBuilder()

public AttributeValueOrBuilder getDefaultValueOrBuilder()

The default value for the attribute.

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

Returns
Type Description
AttributeValueOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDefaultValue(AttributeValue value)

public OperatorDefinition.AttributeDefinition.Builder mergeDefaultValue(AttributeValue value)

The default value for the attribute.

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

Parameter
Name Description
value AttributeValue
Returns
Type Description
OperatorDefinition.AttributeDefinition.Builder

mergeFrom(OperatorDefinition.AttributeDefinition other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAttribute(String value)

public OperatorDefinition.AttributeDefinition.Builder setAttribute(String value)

The name of the attribute.

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

string attribute = 1;

Parameter
Name Description
value String

The attribute to set.

Returns
Type Description
OperatorDefinition.AttributeDefinition.Builder

This builder for chaining.

setAttributeBytes(ByteString value)

public OperatorDefinition.AttributeDefinition.Builder setAttributeBytes(ByteString value)

The name of the attribute.

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

string attribute = 1;

Parameter
Name Description
value ByteString

The bytes for attribute to set.

Returns
Type Description
OperatorDefinition.AttributeDefinition.Builder

This builder for chaining.

setDefaultValue(AttributeValue value)

public OperatorDefinition.AttributeDefinition.Builder setDefaultValue(AttributeValue value)

The default value for the attribute.

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

Parameter
Name Description
value AttributeValue
Returns
Type Description
OperatorDefinition.AttributeDefinition.Builder

setDefaultValue(AttributeValue.Builder builderForValue)

public OperatorDefinition.AttributeDefinition.Builder setDefaultValue(AttributeValue.Builder builderForValue)

The default value for the attribute.

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

Parameter
Name Description
builderForValue AttributeValue.Builder
Returns
Type Description
OperatorDefinition.AttributeDefinition.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setType(String value)

public OperatorDefinition.AttributeDefinition.Builder setType(String value)

The type of this attribute.

See attribute_value.proto for possibilities.

string type = 2;

Parameter
Name Description
value String

The type to set.

Returns
Type Description
OperatorDefinition.AttributeDefinition.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public OperatorDefinition.AttributeDefinition.Builder setTypeBytes(ByteString value)

The type of this attribute.

See attribute_value.proto for possibilities.

string type = 2;

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
OperatorDefinition.AttributeDefinition.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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