Class GetResourceDriftRequest.Builder (0.62.0)

public static final class GetResourceDriftRequest.Builder extends GeneratedMessage.Builder<GetResourceDriftRequest.Builder> implements GetResourceDriftRequestOrBuilder

The request message for the GetResourceDrift method.

Protobuf type google.cloud.config.v1.GetResourceDriftRequest

Static Methods

getDescriptor()

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

Methods

build()

public GetResourceDriftRequest build()
Returns
Type Description
GetResourceDriftRequest

buildPartial()

public GetResourceDriftRequest buildPartial()
Returns
Type Description
GetResourceDriftRequest

clear()

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

clearName()

public GetResourceDriftRequest.Builder clearName()

Required. The name of the resource drift to retrieve. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.

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

Returns
Type Description
GetResourceDriftRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public GetResourceDriftRequest getDefaultInstanceForType()
Returns
Type Description
GetResourceDriftRequest

getDescriptorForType()

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

getName()

public String getName()

Required. The name of the resource drift to retrieve. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the resource drift to retrieve. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.

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

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetResourceDriftRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public GetResourceDriftRequest.Builder setName(String value)

Required. The name of the resource drift to retrieve. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GetResourceDriftRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetResourceDriftRequest.Builder setNameBytes(ByteString value)

Required. The name of the resource drift to retrieve. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.

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
GetResourceDriftRequest.Builder

This builder for chaining.