Send feedback
Class CreateRestorePlanRequest.Builder (0.1.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.1.0 keyboard_arrow_down
public static final class CreateRestorePlanRequest . Builder extends GeneratedMessageV3 . Builder<CreateRestorePlanRequest . Builder > implements CreateRestorePlanRequestOrBuilder
Request message for CreateRestorePlan.
Protobuf type google.cloud.gkebackup.v1.CreateRestorePlanRequest
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateRestorePlanRequest . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public CreateRestorePlanRequest build ()
Returns
buildPartial()
public CreateRestorePlanRequest buildPartial ()
Returns
clear()
public CreateRestorePlanRequest . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateRestorePlanRequest . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateRestorePlanRequest . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearParent()
public CreateRestorePlanRequest . Builder clearParent ()
Required. The location within which to create the RestorePlan.
Format: projects/*/locations/*
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clearRestorePlan()
public CreateRestorePlanRequest . Builder clearRestorePlan ()
Required. The RestorePlan resource object to create.
.google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clearRestorePlanId()
public CreateRestorePlanRequest . Builder clearRestorePlanId ()
Required. The client-provided short name for the RestorePlan 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 RestorePlans in this location
string restore_plan_id = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
clone()
public CreateRestorePlanRequest . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public CreateRestorePlanRequest getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getParent()
public String getParent ()
Required. The location within which to create the RestorePlan.
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 RestorePlan.
Format: projects/*/locations/*
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
getRestorePlan()
public RestorePlan getRestorePlan ()
Required. The RestorePlan resource object to create.
.google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getRestorePlanBuilder()
public RestorePlan . Builder getRestorePlanBuilder ()
Required. The RestorePlan resource object to create.
.google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getRestorePlanId()
public String getRestorePlanId ()
Required. The client-provided short name for the RestorePlan 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 RestorePlans in this location
string restore_plan_id = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
Type Description String The restorePlanId.
getRestorePlanIdBytes()
public ByteString getRestorePlanIdBytes ()
Required. The client-provided short name for the RestorePlan 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 RestorePlans in this location
string restore_plan_id = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
Type Description ByteString The bytes for restorePlanId.
getRestorePlanOrBuilder()
public RestorePlanOrBuilder getRestorePlanOrBuilder ()
Required. The RestorePlan resource object to create.
.google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
hasRestorePlan()
public boolean hasRestorePlan ()
Required. The RestorePlan resource object to create.
.google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type Description boolean Whether the restorePlan field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(CreateRestorePlanRequest other)
public CreateRestorePlanRequest . Builder mergeFrom ( CreateRestorePlanRequest other )
Parameter
Returns
public CreateRestorePlanRequest . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateRestorePlanRequest . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeRestorePlan(RestorePlan value)
public CreateRestorePlanRequest . Builder mergeRestorePlan ( RestorePlan value )
Required. The RestorePlan resource object to create.
.google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateRestorePlanRequest . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateRestorePlanRequest . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setParent(String value)
public CreateRestorePlanRequest . Builder setParent ( String value )
Required. The location within which to create the RestorePlan.
Format: projects/*/locations/*
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name Description value String
The parent to set.
Returns
setParentBytes(ByteString value)
public CreateRestorePlanRequest . Builder setParentBytes ( ByteString value )
Required. The location within which to create the RestorePlan.
Format: projects/*/locations/*
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name Description value ByteString
The bytes for parent to set.
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateRestorePlanRequest . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setRestorePlan(RestorePlan value)
public CreateRestorePlanRequest . Builder setRestorePlan ( RestorePlan value )
Required. The RestorePlan resource object to create.
.google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setRestorePlan(RestorePlan.Builder builderForValue)
public CreateRestorePlanRequest . Builder setRestorePlan ( RestorePlan . Builder builderForValue )
Required. The RestorePlan resource object to create.
.google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setRestorePlanId(String value)
public CreateRestorePlanRequest . Builder setRestorePlanId ( String value )
Required. The client-provided short name for the RestorePlan 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 RestorePlans in this location
string restore_plan_id = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name Description value String
The restorePlanId to set.
Returns
setRestorePlanIdBytes(ByteString value)
public CreateRestorePlanRequest . Builder setRestorePlanIdBytes ( ByteString value )
Required. The client-provided short name for the RestorePlan 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 RestorePlans in this location
string restore_plan_id = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name Description value ByteString
The bytes for restorePlanId to set.
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateRestorePlanRequest . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-14 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-14 UTC."],[],[]]