Class GetTemplateVersionRequest.Builder (0.43.0)

public static final class GetTemplateVersionRequest.Builder extends GeneratedMessage.Builder<GetTemplateVersionRequest.Builder> implements GetTemplateVersionRequestOrBuilder

Message for getting a TemplateVersion

Protobuf type google.cloud.parametermanager.v1.GetTemplateVersionRequest

Static Methods

getDescriptor()

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

Methods

build()

public GetTemplateVersionRequest build()
Returns
Type Description
GetTemplateVersionRequest

buildPartial()

public GetTemplateVersionRequest buildPartial()
Returns
Type Description
GetTemplateVersionRequest

clear()

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

clearName()

public GetTemplateVersionRequest.Builder clearName()

Required. Name of the resource in the format projects/*/locations/*/templates/*/versions/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
GetTemplateVersionRequest.Builder

This builder for chaining.

clearView()

public GetTemplateVersionRequest.Builder clearView()

Optional. Specifies the view of the TemplateVersion to return. In the default FULL view, all metadata & payload associated with the TemplateVersion will be returned.

.google.cloud.parametermanager.v1.View view = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GetTemplateVersionRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public GetTemplateVersionRequest getDefaultInstanceForType()
Returns
Type Description
GetTemplateVersionRequest

getDescriptorForType()

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

getName()

public String getName()

Required. Name of the resource in the format projects/*/locations/*/templates/*/versions/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the resource in the format projects/*/locations/*/templates/*/versions/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getView()

public View getView()

Optional. Specifies the view of the TemplateVersion to return. In the default FULL view, all metadata & payload associated with the TemplateVersion will be returned.

.google.cloud.parametermanager.v1.View view = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
View

The view.

getViewValue()

public int getViewValue()

Optional. Specifies the view of the TemplateVersion to return. In the default FULL view, all metadata & payload associated with the TemplateVersion will be returned.

.google.cloud.parametermanager.v1.View view = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for view.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetTemplateVersionRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public GetTemplateVersionRequest.Builder setName(String value)

Required. Name of the resource in the format projects/*/locations/*/templates/*/versions/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GetTemplateVersionRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetTemplateVersionRequest.Builder setNameBytes(ByteString value)

Required. Name of the resource in the format projects/*/locations/*/templates/*/versions/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GetTemplateVersionRequest.Builder

This builder for chaining.

setView(View value)

public GetTemplateVersionRequest.Builder setView(View value)

Optional. Specifies the view of the TemplateVersion to return. In the default FULL view, all metadata & payload associated with the TemplateVersion will be returned.

.google.cloud.parametermanager.v1.View view = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value View

The view to set.

Returns
Type Description
GetTemplateVersionRequest.Builder

This builder for chaining.

setViewValue(int value)

public GetTemplateVersionRequest.Builder setViewValue(int value)

Optional. Specifies the view of the TemplateVersion to return. In the default FULL view, all metadata & payload associated with the TemplateVersion will be returned.

.google.cloud.parametermanager.v1.View view = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
GetTemplateVersionRequest.Builder

This builder for chaining.