Class LabelProperties.Builder (0.3.0)

public static final class LabelProperties.Builder extends GeneratedMessage.Builder<LabelProperties.Builder> implements LabelPropertiesOrBuilder

Identifier for the label and corresponding properties.

Protobuf type google.cloud.apptopology.v1.LabelProperties

Static Methods

getDescriptor()

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

Methods

addAllProperties(Iterable<? extends Property> values)

public LabelProperties.Builder addAllProperties(Iterable<? extends Property> values)

List of properties associated with the label.

repeated .google.cloud.apptopology.v1.Property properties = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.apptopology.v1.Property>
Returns
Type Description
LabelProperties.Builder

addProperties(Property value)

public LabelProperties.Builder addProperties(Property value)

List of properties associated with the label.

repeated .google.cloud.apptopology.v1.Property properties = 2;

Parameter
Name Description
value Property
Returns
Type Description
LabelProperties.Builder

addProperties(Property.Builder builderForValue)

public LabelProperties.Builder addProperties(Property.Builder builderForValue)

List of properties associated with the label.

repeated .google.cloud.apptopology.v1.Property properties = 2;

Parameter
Name Description
builderForValue Property.Builder
Returns
Type Description
LabelProperties.Builder

addProperties(int index, Property value)

public LabelProperties.Builder addProperties(int index, Property value)

List of properties associated with the label.

repeated .google.cloud.apptopology.v1.Property properties = 2;

Parameters
Name Description
index int
value Property
Returns
Type Description
LabelProperties.Builder

addProperties(int index, Property.Builder builderForValue)

public LabelProperties.Builder addProperties(int index, Property.Builder builderForValue)

List of properties associated with the label.

repeated .google.cloud.apptopology.v1.Property properties = 2;

Parameters
Name Description
index int
builderForValue Property.Builder
Returns
Type Description
LabelProperties.Builder

addPropertiesBuilder()

public Property.Builder addPropertiesBuilder()

List of properties associated with the label.

repeated .google.cloud.apptopology.v1.Property properties = 2;

Returns
Type Description
Property.Builder

addPropertiesBuilder(int index)

public Property.Builder addPropertiesBuilder(int index)

List of properties associated with the label.

repeated .google.cloud.apptopology.v1.Property properties = 2;

Parameter
Name Description
index int
Returns
Type Description
Property.Builder

build()

public LabelProperties build()
Returns
Type Description
LabelProperties

buildPartial()

public LabelProperties buildPartial()
Returns
Type Description
LabelProperties

clear()

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

clearDescription()

public LabelProperties.Builder clearDescription()

A human-readable description of the label.

string description = 3;

Returns
Type Description
LabelProperties.Builder

This builder for chaining.

clearLabel()

public LabelProperties.Builder clearLabel()

Full qualified name of the label.

string label = 1;

Returns
Type Description
LabelProperties.Builder

This builder for chaining.

clearProperties()

public LabelProperties.Builder clearProperties()

List of properties associated with the label.

repeated .google.cloud.apptopology.v1.Property properties = 2;

Returns
Type Description
LabelProperties.Builder

getDefaultInstanceForType()

public LabelProperties getDefaultInstanceForType()
Returns
Type Description
LabelProperties

getDescription()

public String getDescription()

A human-readable description of the label.

string description = 3;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A human-readable description of the label.

string description = 3;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getLabel()

public String getLabel()

Full qualified name of the label.

string label = 1;

Returns
Type Description
String

The label.

getLabelBytes()

public ByteString getLabelBytes()

Full qualified name of the label.

string label = 1;

Returns
Type Description
ByteString

The bytes for label.

getProperties(int index)

public Property getProperties(int index)

List of properties associated with the label.

repeated .google.cloud.apptopology.v1.Property properties = 2;

Parameter
Name Description
index int
Returns
Type Description
Property

getPropertiesBuilder(int index)

public Property.Builder getPropertiesBuilder(int index)

List of properties associated with the label.

repeated .google.cloud.apptopology.v1.Property properties = 2;

Parameter
Name Description
index int
Returns
Type Description
Property.Builder

getPropertiesBuilderList()

public List<Property.Builder> getPropertiesBuilderList()

List of properties associated with the label.

repeated .google.cloud.apptopology.v1.Property properties = 2;

Returns
Type Description
List<Builder>

getPropertiesCount()

public int getPropertiesCount()

List of properties associated with the label.

repeated .google.cloud.apptopology.v1.Property properties = 2;

Returns
Type Description
int

getPropertiesList()

public List<Property> getPropertiesList()

List of properties associated with the label.

repeated .google.cloud.apptopology.v1.Property properties = 2;

Returns
Type Description
List<Property>

getPropertiesOrBuilder(int index)

public PropertyOrBuilder getPropertiesOrBuilder(int index)

List of properties associated with the label.

repeated .google.cloud.apptopology.v1.Property properties = 2;

Parameter
Name Description
index int
Returns
Type Description
PropertyOrBuilder

getPropertiesOrBuilderList()

public List<? extends PropertyOrBuilder> getPropertiesOrBuilderList()

List of properties associated with the label.

repeated .google.cloud.apptopology.v1.Property properties = 2;

Returns
Type Description
List<? extends com.google.cloud.apptopology.v1.PropertyOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LabelProperties other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeProperties(int index)

public LabelProperties.Builder removeProperties(int index)

List of properties associated with the label.

repeated .google.cloud.apptopology.v1.Property properties = 2;

Parameter
Name Description
index int
Returns
Type Description
LabelProperties.Builder

setDescription(String value)

public LabelProperties.Builder setDescription(String value)

A human-readable description of the label.

string description = 3;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
LabelProperties.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public LabelProperties.Builder setDescriptionBytes(ByteString value)

A human-readable description of the label.

string description = 3;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
LabelProperties.Builder

This builder for chaining.

setLabel(String value)

public LabelProperties.Builder setLabel(String value)

Full qualified name of the label.

string label = 1;

Parameter
Name Description
value String

The label to set.

Returns
Type Description
LabelProperties.Builder

This builder for chaining.

setLabelBytes(ByteString value)

public LabelProperties.Builder setLabelBytes(ByteString value)

Full qualified name of the label.

string label = 1;

Parameter
Name Description
value ByteString

The bytes for label to set.

Returns
Type Description
LabelProperties.Builder

This builder for chaining.

setProperties(int index, Property value)

public LabelProperties.Builder setProperties(int index, Property value)

List of properties associated with the label.

repeated .google.cloud.apptopology.v1.Property properties = 2;

Parameters
Name Description
index int
value Property
Returns
Type Description
LabelProperties.Builder

setProperties(int index, Property.Builder builderForValue)

public LabelProperties.Builder setProperties(int index, Property.Builder builderForValue)

List of properties associated with the label.

repeated .google.cloud.apptopology.v1.Property properties = 2;

Parameters
Name Description
index int
builderForValue Property.Builder
Returns
Type Description
LabelProperties.Builder