Class CreatePreviewRequest.Builder (0.21.0)

public static final class CreatePreviewRequest.Builder extends GeneratedMessageV3.Builder<CreatePreviewRequest.Builder> implements CreatePreviewRequestOrBuilder

A request to create a preview.

Protobuf type google.cloud.config.v1.CreatePreviewRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreatePreviewRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreatePreviewRequest.Builder
Overrides

build()

public CreatePreviewRequest build()
Returns
Type Description
CreatePreviewRequest

buildPartial()

public CreatePreviewRequest buildPartial()
Returns
Type Description
CreatePreviewRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public CreatePreviewRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreatePreviewRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreatePreviewRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreatePreviewRequest.Builder
Overrides

clearParent()

public CreatePreviewRequest.Builder clearParent()

Required. The parent in whose context the Preview is created. The parent value is in the format: 'projects/{project_id}/locations/{location}'.

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

Returns
Type Description
CreatePreviewRequest.Builder

This builder for chaining.

clearPreview()

public CreatePreviewRequest.Builder clearPreview()

Required. Preview resource to be created.

.google.cloud.config.v1.Preview preview = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreatePreviewRequest.Builder

clearPreviewId()

public CreatePreviewRequest.Builder clearPreviewId()

Optional. The preview ID.

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

Returns
Type Description
CreatePreviewRequest.Builder

This builder for chaining.

clearRequestId()

public CreatePreviewRequest.Builder clearRequestId()

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
CreatePreviewRequest.Builder

This builder for chaining.

clone()

public CreatePreviewRequest.Builder clone()
Returns
Type Description
CreatePreviewRequest.Builder
Overrides

getDefaultInstanceForType()

public CreatePreviewRequest getDefaultInstanceForType()
Returns
Type Description
CreatePreviewRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent in whose context the Preview is created. The parent value is in the format: 'projects/{project_id}/locations/{location}'.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent in whose context the Preview is created. The parent value is in the format: 'projects/{project_id}/locations/{location}'.

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

Returns
Type Description
ByteString

The bytes for parent.

getPreview()

public Preview getPreview()

Required. Preview resource to be created.

.google.cloud.config.v1.Preview preview = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Preview

The preview.

getPreviewBuilder()

public Preview.Builder getPreviewBuilder()

Required. Preview resource to be created.

.google.cloud.config.v1.Preview preview = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Preview.Builder

getPreviewId()

public String getPreviewId()

Optional. The preview ID.

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

Returns
Type Description
String

The previewId.

getPreviewIdBytes()

public ByteString getPreviewIdBytes()

Optional. The preview ID.

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

Returns
Type Description
ByteString

The bytes for previewId.

getPreviewOrBuilder()

public PreviewOrBuilder getPreviewOrBuilder()

Required. Preview resource to be created.

.google.cloud.config.v1.Preview preview = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PreviewOrBuilder

getRequestId()

public String getRequestId()

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for requestId.

hasPreview()

public boolean hasPreview()

Required. Preview resource to be created.

.google.cloud.config.v1.Preview preview = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the preview field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreatePreviewRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePreview(Preview value)

public CreatePreviewRequest.Builder mergePreview(Preview value)

Required. Preview resource to be created.

.google.cloud.config.v1.Preview preview = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Preview
Returns
Type Description
CreatePreviewRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreatePreviewRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreatePreviewRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreatePreviewRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreatePreviewRequest.Builder
Overrides

setParent(String value)

public CreatePreviewRequest.Builder setParent(String value)

Required. The parent in whose context the Preview is created. The parent value is in the format: 'projects/{project_id}/locations/{location}'.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreatePreviewRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreatePreviewRequest.Builder setParentBytes(ByteString value)

Required. The parent in whose context the Preview is created. The parent value is in the format: 'projects/{project_id}/locations/{location}'.

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreatePreviewRequest.Builder

This builder for chaining.

setPreview(Preview value)

public CreatePreviewRequest.Builder setPreview(Preview value)

Required. Preview resource to be created.

.google.cloud.config.v1.Preview preview = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Preview
Returns
Type Description
CreatePreviewRequest.Builder

setPreview(Preview.Builder builderForValue)

public CreatePreviewRequest.Builder setPreview(Preview.Builder builderForValue)

Required. Preview resource to be created.

.google.cloud.config.v1.Preview preview = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Preview.Builder
Returns
Type Description
CreatePreviewRequest.Builder

setPreviewId(String value)

public CreatePreviewRequest.Builder setPreviewId(String value)

Optional. The preview ID.

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

Parameter
Name Description
value String

The previewId to set.

Returns
Type Description
CreatePreviewRequest.Builder

This builder for chaining.

setPreviewIdBytes(ByteString value)

public CreatePreviewRequest.Builder setPreviewIdBytes(ByteString value)

Optional. The preview ID.

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

Parameter
Name Description
value ByteString

The bytes for previewId to set.

Returns
Type Description
CreatePreviewRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreatePreviewRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreatePreviewRequest.Builder
Overrides

setRequestId(String value)

public CreatePreviewRequest.Builder setRequestId(String value)

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Parameter
Name Description
value String

The requestId to set.

Returns
Type Description
CreatePreviewRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreatePreviewRequest.Builder setRequestIdBytes(ByteString value)

Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
CreatePreviewRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CreatePreviewRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreatePreviewRequest.Builder
Overrides