Class RestoreConfig.GroupKind.Builder (0.46.0)

public static final class RestoreConfig.GroupKind.Builder extends GeneratedMessageV3.Builder<RestoreConfig.GroupKind.Builder> implements RestoreConfig.GroupKindOrBuilder

This is a direct map to the Kubernetes GroupKind type GroupKind and is used for identifying specific "types" of resources to restore.

Protobuf type google.cloud.gkebackup.v1.RestoreConfig.GroupKind

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RestoreConfig.GroupKind build()
Returns
Type Description
RestoreConfig.GroupKind

buildPartial()

public RestoreConfig.GroupKind buildPartial()
Returns
Type Description
RestoreConfig.GroupKind

clear()

public RestoreConfig.GroupKind.Builder clear()
Returns
Type Description
RestoreConfig.GroupKind.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResourceGroup()

public RestoreConfig.GroupKind.Builder clearResourceGroup()

Optional. API group string of a Kubernetes resource, e.g. "apiextensions.k8s.io", "storage.k8s.io", etc. Note: use empty string for core API group

string resource_group = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RestoreConfig.GroupKind.Builder

This builder for chaining.

clearResourceKind()

public RestoreConfig.GroupKind.Builder clearResourceKind()

Optional. Kind of a Kubernetes resource, must be in UpperCamelCase (PascalCase) and singular form. E.g. "CustomResourceDefinition", "StorageClass", etc.

string resource_kind = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RestoreConfig.GroupKind.Builder

This builder for chaining.

clone()

public RestoreConfig.GroupKind.Builder clone()
Returns
Type Description
RestoreConfig.GroupKind.Builder
Overrides

getDefaultInstanceForType()

public RestoreConfig.GroupKind getDefaultInstanceForType()
Returns
Type Description
RestoreConfig.GroupKind

getDescriptorForType()

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

getResourceGroup()

public String getResourceGroup()

Optional. API group string of a Kubernetes resource, e.g. "apiextensions.k8s.io", "storage.k8s.io", etc. Note: use empty string for core API group

string resource_group = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The resourceGroup.

getResourceGroupBytes()

public ByteString getResourceGroupBytes()

Optional. API group string of a Kubernetes resource, e.g. "apiextensions.k8s.io", "storage.k8s.io", etc. Note: use empty string for core API group

string resource_group = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for resourceGroup.

getResourceKind()

public String getResourceKind()

Optional. Kind of a Kubernetes resource, must be in UpperCamelCase (PascalCase) and singular form. E.g. "CustomResourceDefinition", "StorageClass", etc.

string resource_kind = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The resourceKind.

getResourceKindBytes()

public ByteString getResourceKindBytes()

Optional. Kind of a Kubernetes resource, must be in UpperCamelCase (PascalCase) and singular form. E.g. "CustomResourceDefinition", "StorageClass", etc.

string resource_kind = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for resourceKind.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RestoreConfig.GroupKind other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setResourceGroup(String value)

public RestoreConfig.GroupKind.Builder setResourceGroup(String value)

Optional. API group string of a Kubernetes resource, e.g. "apiextensions.k8s.io", "storage.k8s.io", etc. Note: use empty string for core API group

string resource_group = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The resourceGroup to set.

Returns
Type Description
RestoreConfig.GroupKind.Builder

This builder for chaining.

setResourceGroupBytes(ByteString value)

public RestoreConfig.GroupKind.Builder setResourceGroupBytes(ByteString value)

Optional. API group string of a Kubernetes resource, e.g. "apiextensions.k8s.io", "storage.k8s.io", etc. Note: use empty string for core API group

string resource_group = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for resourceGroup to set.

Returns
Type Description
RestoreConfig.GroupKind.Builder

This builder for chaining.

setResourceKind(String value)

public RestoreConfig.GroupKind.Builder setResourceKind(String value)

Optional. Kind of a Kubernetes resource, must be in UpperCamelCase (PascalCase) and singular form. E.g. "CustomResourceDefinition", "StorageClass", etc.

string resource_kind = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The resourceKind to set.

Returns
Type Description
RestoreConfig.GroupKind.Builder

This builder for chaining.

setResourceKindBytes(ByteString value)

public RestoreConfig.GroupKind.Builder setResourceKindBytes(ByteString value)

Optional. Kind of a Kubernetes resource, must be in UpperCamelCase (PascalCase) and singular form. E.g. "CustomResourceDefinition", "StorageClass", etc.

string resource_kind = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for resourceKind to set.

Returns
Type Description
RestoreConfig.GroupKind.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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