Class CreateSnapshotSchedulePolicyRequest (0.2.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
TypeDescription
int

SNAPSHOT_SCHEDULE_POLICY_FIELD_NUMBER

public static final int SNAPSHOT_SCHEDULE_POLICY_FIELD_NUMBER
Field Value
TypeDescription
int

SNAPSHOT_SCHEDULE_POLICY_ID_FIELD_NUMBER

public static final int SNAPSHOT_SCHEDULE_POLICY_ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CreateSnapshotSchedulePolicyRequest getDefaultInstance()
Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest

getDescriptor()

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

newBuilder()

public static CreateSnapshotSchedulePolicyRequest.Builder newBuilder()
Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest.Builder

newBuilder(CreateSnapshotSchedulePolicyRequest prototype)

public static CreateSnapshotSchedulePolicyRequest.Builder newBuilder(CreateSnapshotSchedulePolicyRequest prototype)
Parameter
NameDescription
prototypeCreateSnapshotSchedulePolicyRequest
Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateSnapshotSchedulePolicyRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateSnapshotSchedulePolicyRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CreateSnapshotSchedulePolicyRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateSnapshotSchedulePolicyRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateSnapshotSchedulePolicyRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateSnapshotSchedulePolicyRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateSnapshotSchedulePolicyRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateSnapshotSchedulePolicyRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CreateSnapshotSchedulePolicyRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateSnapshotSchedulePolicyRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CreateSnapshotSchedulePolicyRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateSnapshotSchedulePolicyRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CreateSnapshotSchedulePolicyRequest> parser()
Returns
TypeDescription
Parser<CreateSnapshotSchedulePolicyRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CreateSnapshotSchedulePolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
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
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.

getParserForType()

public Parser<CreateSnapshotSchedulePolicyRequest> getParserForType()
Returns
TypeDescription
Parser<CreateSnapshotSchedulePolicyRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
SnapshotSchedulePolicy

The snapshotSchedulePolicy.

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

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
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
TypeDescription
boolean

Whether the snapshotSchedulePolicy field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CreateSnapshotSchedulePolicyRequest.Builder newBuilderForType()
Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateSnapshotSchedulePolicyRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CreateSnapshotSchedulePolicyRequest.Builder toBuilder()
Returns
TypeDescription
CreateSnapshotSchedulePolicyRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException