Class AttributeValues.Builder (0.5.0)

public static final class AttributeValues.Builder extends GeneratedMessageV3.Builder<AttributeValues.Builder> implements AttributeValuesOrBuilder

The attribute values associated with resource.

Protobuf type google.cloud.apihub.v1.AttributeValues

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AttributeValues build()
Returns
Type Description
AttributeValues

buildPartial()

public AttributeValues buildPartial()
Returns
Type Description
AttributeValues

clear()

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

clearAttribute()

public AttributeValues.Builder clearAttribute()

Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}

string attribute = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
AttributeValues.Builder

This builder for chaining.

clearEnumValues()

public AttributeValues.Builder clearEnumValues()

The attribute values associated with a resource in case attribute data type is enum.

.google.cloud.apihub.v1.AttributeValues.EnumAttributeValues enum_values = 2;

Returns
Type Description
AttributeValues.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearJsonValues()

public AttributeValues.Builder clearJsonValues()

The attribute values associated with a resource in case attribute data type is JSON.

.google.cloud.apihub.v1.AttributeValues.StringAttributeValues json_values = 4;

Returns
Type Description
AttributeValues.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStringValues()

public AttributeValues.Builder clearStringValues()

The attribute values associated with a resource in case attribute data type is string.

.google.cloud.apihub.v1.AttributeValues.StringAttributeValues string_values = 3;

Returns
Type Description
AttributeValues.Builder

clearValue()

public AttributeValues.Builder clearValue()
Returns
Type Description
AttributeValues.Builder

clone()

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

getAttribute()

public String getAttribute()

Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}

string attribute = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The attribute.

getAttributeBytes()

public ByteString getAttributeBytes()

Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}

string attribute = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for attribute.

getDefaultInstanceForType()

public AttributeValues getDefaultInstanceForType()
Returns
Type Description
AttributeValues

getDescriptorForType()

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

getEnumValues()

public AttributeValues.EnumAttributeValues getEnumValues()

The attribute values associated with a resource in case attribute data type is enum.

.google.cloud.apihub.v1.AttributeValues.EnumAttributeValues enum_values = 2;

Returns
Type Description
AttributeValues.EnumAttributeValues

The enumValues.

getEnumValuesBuilder()

public AttributeValues.EnumAttributeValues.Builder getEnumValuesBuilder()

The attribute values associated with a resource in case attribute data type is enum.

.google.cloud.apihub.v1.AttributeValues.EnumAttributeValues enum_values = 2;

Returns
Type Description
AttributeValues.EnumAttributeValues.Builder

getEnumValuesOrBuilder()

public AttributeValues.EnumAttributeValuesOrBuilder getEnumValuesOrBuilder()

The attribute values associated with a resource in case attribute data type is enum.

.google.cloud.apihub.v1.AttributeValues.EnumAttributeValues enum_values = 2;

Returns
Type Description
AttributeValues.EnumAttributeValuesOrBuilder

getJsonValues()

public AttributeValues.StringAttributeValues getJsonValues()

The attribute values associated with a resource in case attribute data type is JSON.

.google.cloud.apihub.v1.AttributeValues.StringAttributeValues json_values = 4;

Returns
Type Description
AttributeValues.StringAttributeValues

The jsonValues.

getJsonValuesBuilder()

public AttributeValues.StringAttributeValues.Builder getJsonValuesBuilder()

The attribute values associated with a resource in case attribute data type is JSON.

.google.cloud.apihub.v1.AttributeValues.StringAttributeValues json_values = 4;

Returns
Type Description
AttributeValues.StringAttributeValues.Builder

getJsonValuesOrBuilder()

public AttributeValues.StringAttributeValuesOrBuilder getJsonValuesOrBuilder()

The attribute values associated with a resource in case attribute data type is JSON.

.google.cloud.apihub.v1.AttributeValues.StringAttributeValues json_values = 4;

Returns
Type Description
AttributeValues.StringAttributeValuesOrBuilder

getStringValues()

public AttributeValues.StringAttributeValues getStringValues()

The attribute values associated with a resource in case attribute data type is string.

.google.cloud.apihub.v1.AttributeValues.StringAttributeValues string_values = 3;

Returns
Type Description
AttributeValues.StringAttributeValues

The stringValues.

getStringValuesBuilder()

public AttributeValues.StringAttributeValues.Builder getStringValuesBuilder()

The attribute values associated with a resource in case attribute data type is string.

.google.cloud.apihub.v1.AttributeValues.StringAttributeValues string_values = 3;

Returns
Type Description
AttributeValues.StringAttributeValues.Builder

getStringValuesOrBuilder()

public AttributeValues.StringAttributeValuesOrBuilder getStringValuesOrBuilder()

The attribute values associated with a resource in case attribute data type is string.

.google.cloud.apihub.v1.AttributeValues.StringAttributeValues string_values = 3;

Returns
Type Description
AttributeValues.StringAttributeValuesOrBuilder

getValueCase()

public AttributeValues.ValueCase getValueCase()
Returns
Type Description
AttributeValues.ValueCase

hasEnumValues()

public boolean hasEnumValues()

The attribute values associated with a resource in case attribute data type is enum.

.google.cloud.apihub.v1.AttributeValues.EnumAttributeValues enum_values = 2;

Returns
Type Description
boolean

Whether the enumValues field is set.

hasJsonValues()

public boolean hasJsonValues()

The attribute values associated with a resource in case attribute data type is JSON.

.google.cloud.apihub.v1.AttributeValues.StringAttributeValues json_values = 4;

Returns
Type Description
boolean

Whether the jsonValues field is set.

hasStringValues()

public boolean hasStringValues()

The attribute values associated with a resource in case attribute data type is string.

.google.cloud.apihub.v1.AttributeValues.StringAttributeValues string_values = 3;

Returns
Type Description
boolean

Whether the stringValues field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEnumValues(AttributeValues.EnumAttributeValues value)

public AttributeValues.Builder mergeEnumValues(AttributeValues.EnumAttributeValues value)

The attribute values associated with a resource in case attribute data type is enum.

.google.cloud.apihub.v1.AttributeValues.EnumAttributeValues enum_values = 2;

Parameter
Name Description
value AttributeValues.EnumAttributeValues
Returns
Type Description
AttributeValues.Builder

mergeFrom(AttributeValues other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeJsonValues(AttributeValues.StringAttributeValues value)

public AttributeValues.Builder mergeJsonValues(AttributeValues.StringAttributeValues value)

The attribute values associated with a resource in case attribute data type is JSON.

.google.cloud.apihub.v1.AttributeValues.StringAttributeValues json_values = 4;

Parameter
Name Description
value AttributeValues.StringAttributeValues
Returns
Type Description
AttributeValues.Builder

mergeStringValues(AttributeValues.StringAttributeValues value)

public AttributeValues.Builder mergeStringValues(AttributeValues.StringAttributeValues value)

The attribute values associated with a resource in case attribute data type is string.

.google.cloud.apihub.v1.AttributeValues.StringAttributeValues string_values = 3;

Parameter
Name Description
value AttributeValues.StringAttributeValues
Returns
Type Description
AttributeValues.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAttribute(String value)

public AttributeValues.Builder setAttribute(String value)

Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}

string attribute = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The attribute to set.

Returns
Type Description
AttributeValues.Builder

This builder for chaining.

setAttributeBytes(ByteString value)

public AttributeValues.Builder setAttributeBytes(ByteString value)

Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}

string attribute = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for attribute to set.

Returns
Type Description
AttributeValues.Builder

This builder for chaining.

setEnumValues(AttributeValues.EnumAttributeValues value)

public AttributeValues.Builder setEnumValues(AttributeValues.EnumAttributeValues value)

The attribute values associated with a resource in case attribute data type is enum.

.google.cloud.apihub.v1.AttributeValues.EnumAttributeValues enum_values = 2;

Parameter
Name Description
value AttributeValues.EnumAttributeValues
Returns
Type Description
AttributeValues.Builder

setEnumValues(AttributeValues.EnumAttributeValues.Builder builderForValue)

public AttributeValues.Builder setEnumValues(AttributeValues.EnumAttributeValues.Builder builderForValue)

The attribute values associated with a resource in case attribute data type is enum.

.google.cloud.apihub.v1.AttributeValues.EnumAttributeValues enum_values = 2;

Parameter
Name Description
builderForValue AttributeValues.EnumAttributeValues.Builder
Returns
Type Description
AttributeValues.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setJsonValues(AttributeValues.StringAttributeValues value)

public AttributeValues.Builder setJsonValues(AttributeValues.StringAttributeValues value)

The attribute values associated with a resource in case attribute data type is JSON.

.google.cloud.apihub.v1.AttributeValues.StringAttributeValues json_values = 4;

Parameter
Name Description
value AttributeValues.StringAttributeValues
Returns
Type Description
AttributeValues.Builder

setJsonValues(AttributeValues.StringAttributeValues.Builder builderForValue)

public AttributeValues.Builder setJsonValues(AttributeValues.StringAttributeValues.Builder builderForValue)

The attribute values associated with a resource in case attribute data type is JSON.

.google.cloud.apihub.v1.AttributeValues.StringAttributeValues json_values = 4;

Parameter
Name Description
builderForValue AttributeValues.StringAttributeValues.Builder
Returns
Type Description
AttributeValues.Builder

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

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

setStringValues(AttributeValues.StringAttributeValues value)

public AttributeValues.Builder setStringValues(AttributeValues.StringAttributeValues value)

The attribute values associated with a resource in case attribute data type is string.

.google.cloud.apihub.v1.AttributeValues.StringAttributeValues string_values = 3;

Parameter
Name Description
value AttributeValues.StringAttributeValues
Returns
Type Description
AttributeValues.Builder

setStringValues(AttributeValues.StringAttributeValues.Builder builderForValue)

public AttributeValues.Builder setStringValues(AttributeValues.StringAttributeValues.Builder builderForValue)

The attribute values associated with a resource in case attribute data type is string.

.google.cloud.apihub.v1.AttributeValues.StringAttributeValues string_values = 3;

Parameter
Name Description
builderForValue AttributeValues.StringAttributeValues.Builder
Returns
Type Description
AttributeValues.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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