Class CreatePreviewRequest.Builder (0.17.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreatePreviewRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreatePreviewRequest.Builder
Overrides

build()

public CreatePreviewRequest build()
Returns
TypeDescription
CreatePreviewRequest

buildPartial()

public CreatePreviewRequest buildPartial()
Returns
TypeDescription
CreatePreviewRequest

clear()

public CreatePreviewRequest.Builder clear()
Returns
TypeDescription
CreatePreviewRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreatePreviewRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreatePreviewRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreatePreviewRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CreatePreviewRequest.Builder

clearPreviewId()

public CreatePreviewRequest.Builder clearPreviewId()

Optional. The preview ID.

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

Returns
TypeDescription
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
TypeDescription
CreatePreviewRequest.Builder

This builder for chaining.

clone()

public CreatePreviewRequest.Builder clone()
Returns
TypeDescription
CreatePreviewRequest.Builder
Overrides

getDefaultInstanceForType()

public CreatePreviewRequest getDefaultInstanceForType()
Returns
TypeDescription
CreatePreviewRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Preview.Builder

getPreviewId()

public String getPreviewId()

Optional. The preview ID.

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

Returns
TypeDescription
String

The previewId.

getPreviewIdBytes()

public ByteString getPreviewIdBytes()

Optional. The preview ID.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the preview field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreatePreviewRequest other)

public CreatePreviewRequest.Builder mergeFrom(CreatePreviewRequest other)
Parameter
NameDescription
otherCreatePreviewRequest
Returns
TypeDescription
CreatePreviewRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreatePreviewRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreatePreviewRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreatePreviewRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valuePreview
Returns
TypeDescription
CreatePreviewRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreatePreviewRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreatePreviewRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreatePreviewRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
valuePreview
Returns
TypeDescription
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
NameDescription
builderForValuePreview.Builder
Returns
TypeDescription
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
NameDescription
valueString

The previewId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for previewId to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The requestId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for requestId to set.

Returns
TypeDescription
CreatePreviewRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CreatePreviewRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreatePreviewRequest.Builder
Overrides