Class CreateSnapshotSchedulePolicyRequest (0.1.1)

public final class CreateSnapshotSchedulePolicyRequest extends GeneratedMessageV3 implements CreateSnapshotSchedulePolicyRequestOrBuilder

Message for creating a snapshot schedule policy in a project.

Protobuf type google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > CreateSnapshotSchedulePolicyRequest

Static Fields

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
Type Description
int

SNAPSHOT_SCHEDULE_POLICY_FIELD_NUMBER

public static final int SNAPSHOT_SCHEDULE_POLICY_FIELD_NUMBER
Field Value
Type Description
int

SNAPSHOT_SCHEDULE_POLICY_ID_FIELD_NUMBER

public static final int SNAPSHOT_SCHEDULE_POLICY_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CreateSnapshotSchedulePolicyRequest getDefaultInstance()
Returns
Type Description
CreateSnapshotSchedulePolicyRequest

getDescriptor()

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

newBuilder()

public static CreateSnapshotSchedulePolicyRequest.Builder newBuilder()
Returns
Type Description
CreateSnapshotSchedulePolicyRequest.Builder

newBuilder(CreateSnapshotSchedulePolicyRequest prototype)

public static CreateSnapshotSchedulePolicyRequest.Builder newBuilder(CreateSnapshotSchedulePolicyRequest prototype)
Parameter
Name Description
prototype CreateSnapshotSchedulePolicyRequest
Returns
Type Description
CreateSnapshotSchedulePolicyRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateSnapshotSchedulePolicyRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateSnapshotSchedulePolicyRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateSnapshotSchedulePolicyRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateSnapshotSchedulePolicyRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CreateSnapshotSchedulePolicyRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CreateSnapshotSchedulePolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateSnapshotSchedulePolicyRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateSnapshotSchedulePolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateSnapshotSchedulePolicyRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CreateSnapshotSchedulePolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateSnapshotSchedulePolicyRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateSnapshotSchedulePolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateSnapshotSchedulePolicyRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CreateSnapshotSchedulePolicyRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateSnapshotSchedulePolicyRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateSnapshotSchedulePolicyRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CreateSnapshotSchedulePolicyRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateSnapshotSchedulePolicyRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateSnapshotSchedulePolicyRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateSnapshotSchedulePolicyRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CreateSnapshotSchedulePolicyRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CreateSnapshotSchedulePolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateSnapshotSchedulePolicyRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateSnapshotSchedulePolicyRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CreateSnapshotSchedulePolicyRequest> parser()
Returns
Type Description
Parser<CreateSnapshotSchedulePolicyRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public CreateSnapshotSchedulePolicyRequest getDefaultInstanceForType()
Returns
Type Description
CreateSnapshotSchedulePolicyRequest

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
Type Description
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
Type Description
ByteString

The bytes for parent.

getParserForType()

public Parser<CreateSnapshotSchedulePolicyRequest> getParserForType()
Returns
Type Description
Parser<CreateSnapshotSchedulePolicyRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSnapshotSchedulePolicy()

public SnapshotSchedulePolicy getSnapshotSchedulePolicy()

Required. The SnapshotSchedulePolicy to create.

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

Returns
Type Description
SnapshotSchedulePolicy

The snapshotSchedulePolicy.

getSnapshotSchedulePolicyId()

public String getSnapshotSchedulePolicyId()

Required. Snapshot policy ID

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

Returns
Type Description
String

The snapshotSchedulePolicyId.

getSnapshotSchedulePolicyIdBytes()

public ByteString getSnapshotSchedulePolicyIdBytes()

Required. Snapshot policy ID

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

Returns
Type Description
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
Type Description
SnapshotSchedulePolicyOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

hasSnapshotSchedulePolicy()

public boolean hasSnapshotSchedulePolicy()

Required. The SnapshotSchedulePolicy to create.

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

Returns
Type Description
boolean

Whether the snapshotSchedulePolicy field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CreateSnapshotSchedulePolicyRequest.Builder newBuilderForType()
Returns
Type Description
CreateSnapshotSchedulePolicyRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateSnapshotSchedulePolicyRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CreateSnapshotSchedulePolicyRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CreateSnapshotSchedulePolicyRequest.Builder toBuilder()
Returns
Type Description
CreateSnapshotSchedulePolicyRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides Exceptions
Type Description
IOException