Class Resource.Builder (0.3.0)

public static final class Resource.Builder extends GeneratedMessage.Builder<Resource.Builder> implements ResourceOrBuilder

Status of the [Resources][]s in the deployment.

Protobuf type google.cloud.designcenter.v1.Resource

Implements

ResourceOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public Resource build()
Returns
Type Description
Resource

buildPartial()

public Resource buildPartial()
Returns
Type Description
Resource

clear()

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

clearName()

public Resource.Builder clearName()

Output only. Identifier. The name of the resource.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
Resource.Builder

This builder for chaining.

clearState()

public Resource.Builder clearState()

Output only. Current state of the resource.

.google.cloud.designcenter.v1.Resource.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Resource.Builder

This builder for chaining.

clearType()

public Resource.Builder clearType()

Output only. The type of the resource.

string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Resource.Builder

This builder for chaining.

getDefaultInstanceForType()

public Resource getDefaultInstanceForType()
Returns
Type Description
Resource

getDescriptorForType()

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

getName()

public String getName()

Output only. Identifier. The name of the resource.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Identifier. The name of the resource.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getState()

public Resource.State getState()

Output only. Current state of the resource.

.google.cloud.designcenter.v1.Resource.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Resource.State

The state.

getStateValue()

public int getStateValue()

Output only. Current state of the resource.

.google.cloud.designcenter.v1.Resource.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getType()

public String getType()

Output only. The type of the resource.

string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Output only. The type of the resource.

string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for type.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Resource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public Resource.Builder setName(String value)

Output only. Identifier. The name of the resource.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Resource.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Resource.Builder setNameBytes(ByteString value)

Output only. Identifier. The name of the resource.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Resource.Builder

This builder for chaining.

setState(Resource.State value)

public Resource.Builder setState(Resource.State value)

Output only. Current state of the resource.

.google.cloud.designcenter.v1.Resource.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Resource.State

The state to set.

Returns
Type Description
Resource.Builder

This builder for chaining.

setStateValue(int value)

public Resource.Builder setStateValue(int value)

Output only. Current state of the resource.

.google.cloud.designcenter.v1.Resource.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
Resource.Builder

This builder for chaining.

setType(String value)

public Resource.Builder setType(String value)

Output only. The type of the resource.

string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The type to set.

Returns
Type Description
Resource.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public Resource.Builder setTypeBytes(ByteString value)

Output only. The type of the resource.

string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
Resource.Builder

This builder for chaining.