Class ProviderVersion.Builder (0.3.0)

public static final class ProviderVersion.Builder extends GeneratedMessage.Builder<ProviderVersion.Builder> implements ProviderVersionOrBuilder

ProviderVersion defines the required version for a provider.

Protobuf type google.cloud.designcenter.v1.ProviderVersion

Static Methods

getDescriptor()

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

Methods

build()

public ProviderVersion build()
Returns
Type Description
ProviderVersion

buildPartial()

public ProviderVersion buildPartial()
Returns
Type Description
ProviderVersion

clear()

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

clearSource()

public ProviderVersion.Builder clearSource()

Output only. The provider source in the format: [hostname]/[namespace]/[name]. Hostname is optional, and defaults to the Terraform registry.

string source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProviderVersion.Builder

This builder for chaining.

clearVersion()

public ProviderVersion.Builder clearVersion()

Output only. Version constraint string.

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

Returns
Type Description
ProviderVersion.Builder

This builder for chaining.

getDefaultInstanceForType()

public ProviderVersion getDefaultInstanceForType()
Returns
Type Description
ProviderVersion

getDescriptorForType()

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

getSource()

public String getSource()

Output only. The provider source in the format: [hostname]/[namespace]/[name]. Hostname is optional, and defaults to the Terraform registry.

string source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The source.

getSourceBytes()

public ByteString getSourceBytes()

Output only. The provider source in the format: [hostname]/[namespace]/[name]. Hostname is optional, and defaults to the Terraform registry.

string source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for source.

getVersion()

public String getVersion()

Output only. Version constraint string.

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

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Output only. Version constraint string.

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

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setSource(String value)

public ProviderVersion.Builder setSource(String value)

Output only. The provider source in the format: [hostname]/[namespace]/[name]. Hostname is optional, and defaults to the Terraform registry.

string source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The source to set.

Returns
Type Description
ProviderVersion.Builder

This builder for chaining.

setSourceBytes(ByteString value)

public ProviderVersion.Builder setSourceBytes(ByteString value)

Output only. The provider source in the format: [hostname]/[namespace]/[name]. Hostname is optional, and defaults to the Terraform registry.

string source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for source to set.

Returns
Type Description
ProviderVersion.Builder

This builder for chaining.

setVersion(String value)

public ProviderVersion.Builder setVersion(String value)

Output only. Version constraint string.

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

Parameter
Name Description
value String

The version to set.

Returns
Type Description
ProviderVersion.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public ProviderVersion.Builder setVersionBytes(ByteString value)

Output only. Version constraint string.

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

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
ProviderVersion.Builder

This builder for chaining.