Class ModuleDependency.Builder (0.3.0)

public static final class ModuleDependency.Builder extends GeneratedMessage.Builder<ModuleDependency.Builder> implements ModuleDependencyOrBuilder

Represents a dependency on another Terraform module.

Protobuf type google.cloud.designcenter.v1.ModuleDependency

Static Methods

getDescriptor()

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

Methods

build()

public ModuleDependency build()
Returns
Type Description
ModuleDependency

buildPartial()

public ModuleDependency buildPartial()
Returns
Type Description
ModuleDependency

clear()

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

clearName()

public ModuleDependency.Builder clearName()

Optional. Local name of the module instance.

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

Returns
Type Description
ModuleDependency.Builder

This builder for chaining.

clearSource()

public ModuleDependency.Builder clearSource()

Optional. Source of the module.

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

Returns
Type Description
ModuleDependency.Builder

This builder for chaining.

clearVersion()

public ModuleDependency.Builder clearVersion()

Optional. Version constraint for the module.

string version = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ModuleDependency.Builder

This builder for chaining.

getDefaultInstanceForType()

public ModuleDependency getDefaultInstanceForType()
Returns
Type Description
ModuleDependency

getDescriptorForType()

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

getName()

public String getName()

Optional. Local name of the module instance.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Optional. Local name of the module instance.

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

Returns
Type Description
ByteString

The bytes for name.

getSource()

public String getSource()

Optional. Source of the module.

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

Returns
Type Description
String

The source.

getSourceBytes()

public ByteString getSourceBytes()

Optional. Source of the module.

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

Returns
Type Description
ByteString

The bytes for source.

getVersion()

public String getVersion()

Optional. Version constraint for the module.

string version = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Optional. Version constraint for the module.

string version = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for version.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ModuleDependency other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public ModuleDependency.Builder setName(String value)

Optional. Local name of the module instance.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ModuleDependency.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ModuleDependency.Builder setNameBytes(ByteString value)

Optional. Local name of the module instance.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ModuleDependency.Builder

This builder for chaining.

setSource(String value)

public ModuleDependency.Builder setSource(String value)

Optional. Source of the module.

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

Parameter
Name Description
value String

The source to set.

Returns
Type Description
ModuleDependency.Builder

This builder for chaining.

setSourceBytes(ByteString value)

public ModuleDependency.Builder setSourceBytes(ByteString value)

Optional. Source of the module.

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

Parameter
Name Description
value ByteString

The bytes for source to set.

Returns
Type Description
ModuleDependency.Builder

This builder for chaining.

setVersion(String value)

public ModuleDependency.Builder setVersion(String value)

Optional. Version constraint for the module.

string version = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The version to set.

Returns
Type Description
ModuleDependency.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public ModuleDependency.Builder setVersionBytes(ByteString value)

Optional. Version constraint for the module.

string version = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
ModuleDependency.Builder

This builder for chaining.