Class RestoreConfig.GroupKind.Builder (0.38.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RestoreConfig.GroupKind build()
Returns
TypeDescription
RestoreConfig.GroupKind

buildPartial()

public RestoreConfig.GroupKind buildPartial()
Returns
TypeDescription
RestoreConfig.GroupKind

clear()

public RestoreConfig.GroupKind.Builder clear()
Returns
TypeDescription
RestoreConfig.GroupKind.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public RestoreConfig.GroupKind.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
RestoreConfig.GroupKind.Builder

This builder for chaining.

clone()

public RestoreConfig.GroupKind.Builder clone()
Returns
TypeDescription
RestoreConfig.GroupKind.Builder
Overrides

getDefaultInstanceForType()

public RestoreConfig.GroupKind getDefaultInstanceForType()
Returns
TypeDescription
RestoreConfig.GroupKind

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for resourceKind.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RestoreConfig.GroupKind other)

public RestoreConfig.GroupKind.Builder mergeFrom(RestoreConfig.GroupKind other)
Parameter
NameDescription
otherRestoreConfig.GroupKind
Returns
TypeDescription
RestoreConfig.GroupKind.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public RestoreConfig.GroupKind.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The resourceGroup to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for resourceGroup to set.

Returns
TypeDescription
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
NameDescription
valueString

The resourceKind to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for resourceKind to set.

Returns
TypeDescription
RestoreConfig.GroupKind.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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