Class SetInternalStatusRequest.Builder (0.10.0)

public static final class SetInternalStatusRequest.Builder extends GeneratedMessageV3.Builder<SetInternalStatusRequest.Builder> implements SetInternalStatusRequestOrBuilder

Request message for SetStatusInternal method.

Protobuf type google.cloud.backupdr.v1.SetInternalStatusRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SetInternalStatusRequest build()
Returns
Type Description
SetInternalStatusRequest

buildPartial()

public SetInternalStatusRequest buildPartial()
Returns
Type Description
SetInternalStatusRequest

clear()

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

clearBackupConfigState()

public SetInternalStatusRequest.Builder clearBackupConfigState()

Required. Output only. The new BackupConfigState to set for the DataSource.

.google.cloud.backupdr.v1.BackupConfigState backup_config_state = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SetInternalStatusRequest.Builder

This builder for chaining.

clearDataSource()

public SetInternalStatusRequest.Builder clearDataSource()

Required. The resource name of the instance, in the format 'projects/*/locations/*/backupVaults/*/dataSources/'.

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

Returns
Type Description
SetInternalStatusRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRequestId()

public SetInternalStatusRequest.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 after the first request. 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
SetInternalStatusRequest.Builder

This builder for chaining.

clearValue()

public SetInternalStatusRequest.Builder clearValue()

Required. The value required for this method to work. This field must be the 32-byte SHA256 hash of the DataSourceID. The DataSourceID used here is only the final piece of the fully qualified resource path for this DataSource (i.e. the part after '.../dataSources/'). This field exists to make this method difficult to call since it is intended for use only by Backup Appliances.

bytes value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SetInternalStatusRequest.Builder

This builder for chaining.

clone()

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

getBackupConfigState()

public BackupConfigState getBackupConfigState()

Required. Output only. The new BackupConfigState to set for the DataSource.

.google.cloud.backupdr.v1.BackupConfigState backup_config_state = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BackupConfigState

The backupConfigState.

getBackupConfigStateValue()

public int getBackupConfigStateValue()

Required. Output only. The new BackupConfigState to set for the DataSource.

.google.cloud.backupdr.v1.BackupConfigState backup_config_state = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for backupConfigState.

getDataSource()

public String getDataSource()

Required. The resource name of the instance, in the format 'projects/*/locations/*/backupVaults/*/dataSources/'.

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

Returns
Type Description
String

The dataSource.

getDataSourceBytes()

public ByteString getDataSourceBytes()

Required. The resource name of the instance, in the format 'projects/*/locations/*/backupVaults/*/dataSources/'.

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

Returns
Type Description
ByteString

The bytes for dataSource.

getDefaultInstanceForType()

public SetInternalStatusRequest getDefaultInstanceForType()
Returns
Type Description
SetInternalStatusRequest

getDescriptorForType()

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

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 after the first request. 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 after the first request. 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.

getValue()

public ByteString getValue()

Required. The value required for this method to work. This field must be the 32-byte SHA256 hash of the DataSourceID. The DataSourceID used here is only the final piece of the fully qualified resource path for this DataSource (i.e. the part after '.../dataSources/'). This field exists to make this method difficult to call since it is intended for use only by Backup Appliances.

bytes value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The value.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SetInternalStatusRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBackupConfigState(BackupConfigState value)

public SetInternalStatusRequest.Builder setBackupConfigState(BackupConfigState value)

Required. Output only. The new BackupConfigState to set for the DataSource.

.google.cloud.backupdr.v1.BackupConfigState backup_config_state = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value BackupConfigState

The backupConfigState to set.

Returns
Type Description
SetInternalStatusRequest.Builder

This builder for chaining.

setBackupConfigStateValue(int value)

public SetInternalStatusRequest.Builder setBackupConfigStateValue(int value)

Required. Output only. The new BackupConfigState to set for the DataSource.

.google.cloud.backupdr.v1.BackupConfigState backup_config_state = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
SetInternalStatusRequest.Builder

This builder for chaining.

setDataSource(String value)

public SetInternalStatusRequest.Builder setDataSource(String value)

Required. The resource name of the instance, in the format 'projects/*/locations/*/backupVaults/*/dataSources/'.

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

Parameter
Name Description
value String

The dataSource to set.

Returns
Type Description
SetInternalStatusRequest.Builder

This builder for chaining.

setDataSourceBytes(ByteString value)

public SetInternalStatusRequest.Builder setDataSourceBytes(ByteString value)

Required. The resource name of the instance, in the format 'projects/*/locations/*/backupVaults/*/dataSources/'.

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

Parameter
Name Description
value ByteString

The bytes for dataSource to set.

Returns
Type Description
SetInternalStatusRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setRequestId(String value)

public SetInternalStatusRequest.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 after the first request. 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
SetInternalStatusRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public SetInternalStatusRequest.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 after the first request. 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
SetInternalStatusRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setValue(ByteString value)

public SetInternalStatusRequest.Builder setValue(ByteString value)

Required. The value required for this method to work. This field must be the 32-byte SHA256 hash of the DataSourceID. The DataSourceID used here is only the final piece of the fully qualified resource path for this DataSource (i.e. the part after '.../dataSources/'). This field exists to make this method difficult to call since it is intended for use only by Backup Appliances.

bytes value = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The value to set.

Returns
Type Description
SetInternalStatusRequest.Builder

This builder for chaining.