Class ModuleResource.Builder (0.3.0)

public static final class ModuleResource.Builder extends GeneratedMessage.Builder<ModuleResource.Builder> implements ModuleResourceOrBuilder

Represents a resource declared within a module.

Protobuf type google.cloud.designcenter.v1.ModuleResource

Static Methods

getDescriptor()

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

Methods

build()

public ModuleResource build()
Returns
Type Description
ModuleResource

buildPartial()

public ModuleResource buildPartial()
Returns
Type Description
ModuleResource

clear()

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

clearName()

public ModuleResource.Builder clearName()

Optional. Local name of the resource instance.

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ModuleResource.Builder

This builder for chaining.

clearType()

public ModuleResource.Builder clearType()

Optional. Type of the resource (e.g., "google_secret_manager_secret").

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

Returns
Type Description
ModuleResource.Builder

This builder for chaining.

getDefaultInstanceForType()

public ModuleResource getDefaultInstanceForType()
Returns
Type Description
ModuleResource

getDescriptorForType()

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

getName()

public String getName()

Optional. Local name of the resource instance.

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Optional. Local name of the resource instance.

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for name.

getType()

public String getType()

Optional. Type of the resource (e.g., "google_secret_manager_secret").

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

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Optional. Type of the resource (e.g., "google_secret_manager_secret").

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

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public ModuleResource.Builder setName(String value)

Optional. Local name of the resource instance.

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ModuleResource.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ModuleResource.Builder setNameBytes(ByteString value)

Optional. Local name of the resource instance.

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ModuleResource.Builder

This builder for chaining.

setType(String value)

public ModuleResource.Builder setType(String value)

Optional. Type of the resource (e.g., "google_secret_manager_secret").

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

Parameter
Name Description
value String

The type to set.

Returns
Type Description
ModuleResource.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public ModuleResource.Builder setTypeBytes(ByteString value)

Optional. Type of the resource (e.g., "google_secret_manager_secret").

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

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
ModuleResource.Builder

This builder for chaining.