public static final class CreateRestoreChannelRequest.Builder extends GeneratedMessage.Builder<CreateRestoreChannelRequest.Builder> implements CreateRestoreChannelRequestOrBuilderRequest message for CreateRestoreChannel.
Protobuf type google.cloud.gkebackup.v1.CreateRestoreChannelRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CreateRestoreChannelRequest.BuilderImplements
CreateRestoreChannelRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CreateRestoreChannelRequest build()| Returns | |
|---|---|
| Type | Description |
CreateRestoreChannelRequest |
|
buildPartial()
public CreateRestoreChannelRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
CreateRestoreChannelRequest |
|
clear()
public CreateRestoreChannelRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
CreateRestoreChannelRequest.Builder |
|
clearParent()
public CreateRestoreChannelRequest.Builder clearParent() Required. The location within which to create the RestoreChannel.
Format: projects/*/locations/*
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
CreateRestoreChannelRequest.Builder |
This builder for chaining. |
clearRestoreChannel()
public CreateRestoreChannelRequest.Builder clearRestoreChannel()Required. The RestoreChannel resource object to create.
.google.cloud.gkebackup.v1.RestoreChannel restore_channel = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CreateRestoreChannelRequest.Builder |
|
clearRestoreChannelId()
public CreateRestoreChannelRequest.Builder clearRestoreChannelId()Optional. The client-provided short name for the RestoreChannel resource. This name must:
- be between 1 and 63 characters long (inclusive)
- consist of only lower-case ASCII letters, numbers, and dashes
- start with a lower-case letter
- end with a lower-case letter or number
- be unique within the set of RestoreChannels in this location If the user does not provide a name, a uuid will be used as the name.
string restore_channel_id = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CreateRestoreChannelRequest.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public CreateRestoreChannelRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CreateRestoreChannelRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getParent()
public String getParent() Required. The location within which to create the RestoreChannel.
Format: projects/*/locations/*
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes() Required. The location within which to create the RestoreChannel.
Format: projects/*/locations/*
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for parent. |
getRestoreChannel()
public RestoreChannel getRestoreChannel()Required. The RestoreChannel resource object to create.
.google.cloud.gkebackup.v1.RestoreChannel restore_channel = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
RestoreChannel |
The restoreChannel. |
getRestoreChannelBuilder()
public RestoreChannel.Builder getRestoreChannelBuilder()Required. The RestoreChannel resource object to create.
.google.cloud.gkebackup.v1.RestoreChannel restore_channel = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
RestoreChannel.Builder |
|
getRestoreChannelId()
public String getRestoreChannelId()Optional. The client-provided short name for the RestoreChannel resource. This name must:
- be between 1 and 63 characters long (inclusive)
- consist of only lower-case ASCII letters, numbers, and dashes
- start with a lower-case letter
- end with a lower-case letter or number
- be unique within the set of RestoreChannels in this location If the user does not provide a name, a uuid will be used as the name.
string restore_channel_id = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The restoreChannelId. |
getRestoreChannelIdBytes()
public ByteString getRestoreChannelIdBytes()Optional. The client-provided short name for the RestoreChannel resource. This name must:
- be between 1 and 63 characters long (inclusive)
- consist of only lower-case ASCII letters, numbers, and dashes
- start with a lower-case letter
- end with a lower-case letter or number
- be unique within the set of RestoreChannels in this location If the user does not provide a name, a uuid will be used as the name.
string restore_channel_id = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for restoreChannelId. |
getRestoreChannelOrBuilder()
public RestoreChannelOrBuilder getRestoreChannelOrBuilder()Required. The RestoreChannel resource object to create.
.google.cloud.gkebackup.v1.RestoreChannel restore_channel = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
RestoreChannelOrBuilder |
|
hasRestoreChannel()
public boolean hasRestoreChannel()Required. The RestoreChannel resource object to create.
.google.cloud.gkebackup.v1.RestoreChannel restore_channel = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the restoreChannel field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CreateRestoreChannelRequest other)
public CreateRestoreChannelRequest.Builder mergeFrom(CreateRestoreChannelRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
CreateRestoreChannelRequest |
| Returns | |
|---|---|
| Type | Description |
CreateRestoreChannelRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateRestoreChannelRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CreateRestoreChannelRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CreateRestoreChannelRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CreateRestoreChannelRequest.Builder |
|
mergeRestoreChannel(RestoreChannel value)
public CreateRestoreChannelRequest.Builder mergeRestoreChannel(RestoreChannel value)Required. The RestoreChannel resource object to create.
.google.cloud.gkebackup.v1.RestoreChannel restore_channel = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
RestoreChannel |
| Returns | |
|---|---|
| Type | Description |
CreateRestoreChannelRequest.Builder |
|
setParent(String value)
public CreateRestoreChannelRequest.Builder setParent(String value) Required. The location within which to create the RestoreChannel.
Format: projects/*/locations/*
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateRestoreChannelRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public CreateRestoreChannelRequest.Builder setParentBytes(ByteString value) Required. The location within which to create the RestoreChannel.
Format: projects/*/locations/*
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateRestoreChannelRequest.Builder |
This builder for chaining. |
setRestoreChannel(RestoreChannel value)
public CreateRestoreChannelRequest.Builder setRestoreChannel(RestoreChannel value)Required. The RestoreChannel resource object to create.
.google.cloud.gkebackup.v1.RestoreChannel restore_channel = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
RestoreChannel |
| Returns | |
|---|---|
| Type | Description |
CreateRestoreChannelRequest.Builder |
|
setRestoreChannel(RestoreChannel.Builder builderForValue)
public CreateRestoreChannelRequest.Builder setRestoreChannel(RestoreChannel.Builder builderForValue)Required. The RestoreChannel resource object to create.
.google.cloud.gkebackup.v1.RestoreChannel restore_channel = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
RestoreChannel.Builder |
| Returns | |
|---|---|
| Type | Description |
CreateRestoreChannelRequest.Builder |
|
setRestoreChannelId(String value)
public CreateRestoreChannelRequest.Builder setRestoreChannelId(String value)Optional. The client-provided short name for the RestoreChannel resource. This name must:
- be between 1 and 63 characters long (inclusive)
- consist of only lower-case ASCII letters, numbers, and dashes
- start with a lower-case letter
- end with a lower-case letter or number
- be unique within the set of RestoreChannels in this location If the user does not provide a name, a uuid will be used as the name.
string restore_channel_id = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe restoreChannelId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateRestoreChannelRequest.Builder |
This builder for chaining. |
setRestoreChannelIdBytes(ByteString value)
public CreateRestoreChannelRequest.Builder setRestoreChannelIdBytes(ByteString value)Optional. The client-provided short name for the RestoreChannel resource. This name must:
- be between 1 and 63 characters long (inclusive)
- consist of only lower-case ASCII letters, numbers, and dashes
- start with a lower-case letter
- end with a lower-case letter or number
- be unique within the set of RestoreChannels in this location If the user does not provide a name, a uuid will be used as the name.
string restore_channel_id = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for restoreChannelId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateRestoreChannelRequest.Builder |
This builder for chaining. |