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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > OperatorDefinition.AttributeDefinition.BuilderStatic 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 |
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 |
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 |
clearOneof(Descriptors.OneofDescriptor oneof)
public OperatorDefinition.AttributeDefinition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
OperatorDefinition.AttributeDefinition.Builder |
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 |
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 |
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
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 |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final OperatorDefinition.AttributeDefinition.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
OperatorDefinition.AttributeDefinition.Builder |
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 |
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 |
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 |