Class CreateSnapshotSchedulePolicyRequest.Builder (0.1.1)

public static final class CreateSnapshotSchedulePolicyRequest.Builder extends GeneratedMessageV3.Builder<CreateSnapshotSchedulePolicyRequest.Builder> implements CreateSnapshotSchedulePolicyRequestOrBuilder

Message for creating a snapshot schedule policy in a project.

Protobuf type google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateSnapshotSchedulePolicyRequest build()
Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest

buildPartial()

public CreateSnapshotSchedulePolicyRequest buildPartial()
Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateSnapshotSchedulePolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest.Builder
Overrides

clearParent()

public CreateSnapshotSchedulePolicyRequest.Builder clearParent()

Required. The parent project and location containing the SnapshotSchedulePolicy.

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

Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest.Builder

This builder for chaining.

clearSnapshotSchedulePolicy()

public CreateSnapshotSchedulePolicyRequest.Builder clearSnapshotSchedulePolicy()

Required. The SnapshotSchedulePolicy to create.

.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest.Builder

clearSnapshotSchedulePolicyId()

public CreateSnapshotSchedulePolicyRequest.Builder clearSnapshotSchedulePolicyId()

Required. Snapshot policy ID

string snapshot_schedule_policy_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateSnapshotSchedulePolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. The parent project and location containing the SnapshotSchedulePolicy.

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent project and location containing the SnapshotSchedulePolicy.

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

Returns
TypeDescription
ByteString

The bytes for parent.

getSnapshotSchedulePolicy()

public SnapshotSchedulePolicy getSnapshotSchedulePolicy()

Required. The SnapshotSchedulePolicy to create.

.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SnapshotSchedulePolicy

The snapshotSchedulePolicy.

getSnapshotSchedulePolicyBuilder()

public SnapshotSchedulePolicy.Builder getSnapshotSchedulePolicyBuilder()

Required. The SnapshotSchedulePolicy to create.

.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SnapshotSchedulePolicy.Builder

getSnapshotSchedulePolicyId()

public String getSnapshotSchedulePolicyId()

Required. Snapshot policy ID

string snapshot_schedule_policy_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The snapshotSchedulePolicyId.

getSnapshotSchedulePolicyIdBytes()

public ByteString getSnapshotSchedulePolicyIdBytes()

Required. Snapshot policy ID

string snapshot_schedule_policy_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for snapshotSchedulePolicyId.

getSnapshotSchedulePolicyOrBuilder()

public SnapshotSchedulePolicyOrBuilder getSnapshotSchedulePolicyOrBuilder()

Required. The SnapshotSchedulePolicy to create.

.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SnapshotSchedulePolicyOrBuilder

hasSnapshotSchedulePolicy()

public boolean hasSnapshotSchedulePolicy()

Required. The SnapshotSchedulePolicy to create.

.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the snapshotSchedulePolicy field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateSnapshotSchedulePolicyRequest other)

public CreateSnapshotSchedulePolicyRequest.Builder mergeFrom(CreateSnapshotSchedulePolicyRequest other)
Parameter
NameDescription
otherCreateSnapshotSchedulePolicyRequest
Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateSnapshotSchedulePolicyRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest.Builder
Overrides

mergeSnapshotSchedulePolicy(SnapshotSchedulePolicy value)

public CreateSnapshotSchedulePolicyRequest.Builder mergeSnapshotSchedulePolicy(SnapshotSchedulePolicy value)

Required. The SnapshotSchedulePolicy to create.

.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueSnapshotSchedulePolicy
Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateSnapshotSchedulePolicyRequest.Builder setParent(String value)

Required. The parent project and location containing the SnapshotSchedulePolicy.

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateSnapshotSchedulePolicyRequest.Builder setParentBytes(ByteString value)

Required. The parent project and location containing the SnapshotSchedulePolicy.

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest.Builder

This builder for chaining.

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

public CreateSnapshotSchedulePolicyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest.Builder
Overrides

setSnapshotSchedulePolicy(SnapshotSchedulePolicy value)

public CreateSnapshotSchedulePolicyRequest.Builder setSnapshotSchedulePolicy(SnapshotSchedulePolicy value)

Required. The SnapshotSchedulePolicy to create.

.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueSnapshotSchedulePolicy
Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest.Builder

setSnapshotSchedulePolicy(SnapshotSchedulePolicy.Builder builderForValue)

public CreateSnapshotSchedulePolicyRequest.Builder setSnapshotSchedulePolicy(SnapshotSchedulePolicy.Builder builderForValue)

Required. The SnapshotSchedulePolicy to create.

.google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueSnapshotSchedulePolicy.Builder
Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest.Builder

setSnapshotSchedulePolicyId(String value)

public CreateSnapshotSchedulePolicyRequest.Builder setSnapshotSchedulePolicyId(String value)

Required. Snapshot policy ID

string snapshot_schedule_policy_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The snapshotSchedulePolicyId to set.

Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest.Builder

This builder for chaining.

setSnapshotSchedulePolicyIdBytes(ByteString value)

public CreateSnapshotSchedulePolicyRequest.Builder setSnapshotSchedulePolicyIdBytes(ByteString value)

Required. Snapshot policy ID

string snapshot_schedule_policy_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for snapshotSchedulePolicyId to set.

Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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