Class Resource.Builder (0.1.0)

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

Resource in execution result.

Protobuf type google.cloud.workloadmanager.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()

The name of the resource.

string name = 2;

Returns
Type Description
Resource.Builder

This builder for chaining.

clearServiceAccount()

public Resource.Builder clearServiceAccount()

The service account associated with the resource.

string service_account = 3;

Returns
Type Description
Resource.Builder

This builder for chaining.

clearType()

public Resource.Builder clearType()

The type of resource.

string type = 1;

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()

The name of the resource.

string name = 2;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the resource.

string name = 2;

Returns
Type Description
ByteString

The bytes for name.

getServiceAccount()

public String getServiceAccount()

The service account associated with the resource.

string service_account = 3;

Returns
Type Description
String

The serviceAccount.

getServiceAccountBytes()

public ByteString getServiceAccountBytes()

The service account associated with the resource.

string service_account = 3;

Returns
Type Description
ByteString

The bytes for serviceAccount.

getType()

public String getType()

The type of resource.

string type = 1;

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

The type of resource.

string type = 1;

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)

The name of the resource.

string name = 2;

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)

The name of the resource.

string name = 2;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Resource.Builder

This builder for chaining.

setServiceAccount(String value)

public Resource.Builder setServiceAccount(String value)

The service account associated with the resource.

string service_account = 3;

Parameter
Name Description
value String

The serviceAccount to set.

Returns
Type Description
Resource.Builder

This builder for chaining.

setServiceAccountBytes(ByteString value)

public Resource.Builder setServiceAccountBytes(ByteString value)

The service account associated with the resource.

string service_account = 3;

Parameter
Name Description
value ByteString

The bytes for serviceAccount to set.

Returns
Type Description
Resource.Builder

This builder for chaining.

setType(String value)

public Resource.Builder setType(String value)

The type of resource.

string type = 1;

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)

The type of resource.

string type = 1;

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
Resource.Builder

This builder for chaining.