Class KubernetesResource.Builder (1.2.1)

public static final class KubernetesResource.Builder extends GeneratedMessageV3.Builder<KubernetesResource.Builder> implements KubernetesResourceOrBuilder

KubernetesResource contains the YAML manifests and configuration for Membership Kubernetes resources in the cluster. After CreateMembership or UpdateMembership, these resources should be re-applied in the cluster.

Protobuf type google.cloud.gkehub.v1beta1.KubernetesResource

Static Methods

getDescriptor()

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

Methods

addAllConnectResources(Iterable<? extends ResourceManifest> values)

public KubernetesResource.Builder addAllConnectResources(Iterable<? extends ResourceManifest> values)

Output only. The Kubernetes resources for installing the GKE Connect agent This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.gkehub.v1beta1.ResourceManifest>
Returns
TypeDescription
KubernetesResource.Builder

addAllMembershipResources(Iterable<? extends ResourceManifest> values)

public KubernetesResource.Builder addAllMembershipResources(Iterable<? extends ResourceManifest> values)

Output only. Additional Kubernetes resources that need to be applied to the cluster after Membership creation, and after every update. This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.gkehub.v1beta1.ResourceManifest>
Returns
TypeDescription
KubernetesResource.Builder

addConnectResources(ResourceManifest value)

public KubernetesResource.Builder addConnectResources(ResourceManifest value)

Output only. The Kubernetes resources for installing the GKE Connect agent This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueResourceManifest
Returns
TypeDescription
KubernetesResource.Builder

addConnectResources(ResourceManifest.Builder builderForValue)

public KubernetesResource.Builder addConnectResources(ResourceManifest.Builder builderForValue)

Output only. The Kubernetes resources for installing the GKE Connect agent This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueResourceManifest.Builder
Returns
TypeDescription
KubernetesResource.Builder

addConnectResources(int index, ResourceManifest value)

public KubernetesResource.Builder addConnectResources(int index, ResourceManifest value)

Output only. The Kubernetes resources for installing the GKE Connect agent This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueResourceManifest
Returns
TypeDescription
KubernetesResource.Builder

addConnectResources(int index, ResourceManifest.Builder builderForValue)

public KubernetesResource.Builder addConnectResources(int index, ResourceManifest.Builder builderForValue)

Output only. The Kubernetes resources for installing the GKE Connect agent This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueResourceManifest.Builder
Returns
TypeDescription
KubernetesResource.Builder

addConnectResourcesBuilder()

public ResourceManifest.Builder addConnectResourcesBuilder()

Output only. The Kubernetes resources for installing the GKE Connect agent This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ResourceManifest.Builder

addConnectResourcesBuilder(int index)

public ResourceManifest.Builder addConnectResourcesBuilder(int index)

Output only. The Kubernetes resources for installing the GKE Connect agent This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ResourceManifest.Builder

addMembershipResources(ResourceManifest value)

public KubernetesResource.Builder addMembershipResources(ResourceManifest value)

Output only. Additional Kubernetes resources that need to be applied to the cluster after Membership creation, and after every update. This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueResourceManifest
Returns
TypeDescription
KubernetesResource.Builder

addMembershipResources(ResourceManifest.Builder builderForValue)

public KubernetesResource.Builder addMembershipResources(ResourceManifest.Builder builderForValue)

Output only. Additional Kubernetes resources that need to be applied to the cluster after Membership creation, and after every update. This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueResourceManifest.Builder
Returns
TypeDescription
KubernetesResource.Builder

addMembershipResources(int index, ResourceManifest value)

public KubernetesResource.Builder addMembershipResources(int index, ResourceManifest value)

Output only. Additional Kubernetes resources that need to be applied to the cluster after Membership creation, and after every update. This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueResourceManifest
Returns
TypeDescription
KubernetesResource.Builder

addMembershipResources(int index, ResourceManifest.Builder builderForValue)

public KubernetesResource.Builder addMembershipResources(int index, ResourceManifest.Builder builderForValue)

Output only. Additional Kubernetes resources that need to be applied to the cluster after Membership creation, and after every update. This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueResourceManifest.Builder
Returns
TypeDescription
KubernetesResource.Builder

addMembershipResourcesBuilder()

public ResourceManifest.Builder addMembershipResourcesBuilder()

Output only. Additional Kubernetes resources that need to be applied to the cluster after Membership creation, and after every update. This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ResourceManifest.Builder

addMembershipResourcesBuilder(int index)

public ResourceManifest.Builder addMembershipResourcesBuilder(int index)

Output only. Additional Kubernetes resources that need to be applied to the cluster after Membership creation, and after every update. This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ResourceManifest.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public KubernetesResource build()
Returns
TypeDescription
KubernetesResource

buildPartial()

public KubernetesResource buildPartial()
Returns
TypeDescription
KubernetesResource

clear()

public KubernetesResource.Builder clear()
Returns
TypeDescription
KubernetesResource.Builder
Overrides

clearConnectResources()

public KubernetesResource.Builder clearConnectResources()

Output only. The Kubernetes resources for installing the GKE Connect agent This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
KubernetesResource.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMembershipCrManifest()

public KubernetesResource.Builder clearMembershipCrManifest()

Input only. The YAML representation of the Membership CR. This field is ignored for GKE clusters where Hub can read the CR directly. Callers should provide the CR that is currently present in the cluster during CreateMembership or UpdateMembership, or leave this field empty if none exists. The CR manifest is used to validate the cluster has not been registered with another Membership.

string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
KubernetesResource.Builder

This builder for chaining.

clearMembershipResources()

public KubernetesResource.Builder clearMembershipResources()

Output only. Additional Kubernetes resources that need to be applied to the cluster after Membership creation, and after every update. This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
KubernetesResource.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public KubernetesResource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
KubernetesResource.Builder
Overrides

clearResourceOptions()

public KubernetesResource.Builder clearResourceOptions()

Optional. Options for Kubernetes resource generation.

.google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
KubernetesResource.Builder

clone()

public KubernetesResource.Builder clone()
Returns
TypeDescription
KubernetesResource.Builder
Overrides

getConnectResources(int index)

public ResourceManifest getConnectResources(int index)

Output only. The Kubernetes resources for installing the GKE Connect agent This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ResourceManifest

getConnectResourcesBuilder(int index)

public ResourceManifest.Builder getConnectResourcesBuilder(int index)

Output only. The Kubernetes resources for installing the GKE Connect agent This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ResourceManifest.Builder

getConnectResourcesBuilderList()

public List<ResourceManifest.Builder> getConnectResourcesBuilderList()

Output only. The Kubernetes resources for installing the GKE Connect agent This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<Builder>

getConnectResourcesCount()

public int getConnectResourcesCount()

Output only. The Kubernetes resources for installing the GKE Connect agent This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

getConnectResourcesList()

public List<ResourceManifest> getConnectResourcesList()

Output only. The Kubernetes resources for installing the GKE Connect agent This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<ResourceManifest>

getConnectResourcesOrBuilder(int index)

public ResourceManifestOrBuilder getConnectResourcesOrBuilder(int index)

Output only. The Kubernetes resources for installing the GKE Connect agent This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ResourceManifestOrBuilder

getConnectResourcesOrBuilderList()

public List<? extends ResourceManifestOrBuilder> getConnectResourcesOrBuilderList()

Output only. The Kubernetes resources for installing the GKE Connect agent This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<? extends com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder>

getDefaultInstanceForType()

public KubernetesResource getDefaultInstanceForType()
Returns
TypeDescription
KubernetesResource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMembershipCrManifest()

public String getMembershipCrManifest()

Input only. The YAML representation of the Membership CR. This field is ignored for GKE clusters where Hub can read the CR directly. Callers should provide the CR that is currently present in the cluster during CreateMembership or UpdateMembership, or leave this field empty if none exists. The CR manifest is used to validate the cluster has not been registered with another Membership.

string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
String

The membershipCrManifest.

getMembershipCrManifestBytes()

public ByteString getMembershipCrManifestBytes()

Input only. The YAML representation of the Membership CR. This field is ignored for GKE clusters where Hub can read the CR directly. Callers should provide the CR that is currently present in the cluster during CreateMembership or UpdateMembership, or leave this field empty if none exists. The CR manifest is used to validate the cluster has not been registered with another Membership.

string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for membershipCrManifest.

getMembershipResources(int index)

public ResourceManifest getMembershipResources(int index)

Output only. Additional Kubernetes resources that need to be applied to the cluster after Membership creation, and after every update. This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ResourceManifest

getMembershipResourcesBuilder(int index)

public ResourceManifest.Builder getMembershipResourcesBuilder(int index)

Output only. Additional Kubernetes resources that need to be applied to the cluster after Membership creation, and after every update. This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ResourceManifest.Builder

getMembershipResourcesBuilderList()

public List<ResourceManifest.Builder> getMembershipResourcesBuilderList()

Output only. Additional Kubernetes resources that need to be applied to the cluster after Membership creation, and after every update. This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<Builder>

getMembershipResourcesCount()

public int getMembershipResourcesCount()

Output only. Additional Kubernetes resources that need to be applied to the cluster after Membership creation, and after every update. This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

getMembershipResourcesList()

public List<ResourceManifest> getMembershipResourcesList()

Output only. Additional Kubernetes resources that need to be applied to the cluster after Membership creation, and after every update. This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<ResourceManifest>

getMembershipResourcesOrBuilder(int index)

public ResourceManifestOrBuilder getMembershipResourcesOrBuilder(int index)

Output only. Additional Kubernetes resources that need to be applied to the cluster after Membership creation, and after every update. This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ResourceManifestOrBuilder

getMembershipResourcesOrBuilderList()

public List<? extends ResourceManifestOrBuilder> getMembershipResourcesOrBuilderList()

Output only. Additional Kubernetes resources that need to be applied to the cluster after Membership creation, and after every update. This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<? extends com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder>

getResourceOptions()

public ResourceOptions getResourceOptions()

Optional. Options for Kubernetes resource generation.

.google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ResourceOptions

The resourceOptions.

getResourceOptionsBuilder()

public ResourceOptions.Builder getResourceOptionsBuilder()

Optional. Options for Kubernetes resource generation.

.google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ResourceOptions.Builder

getResourceOptionsOrBuilder()

public ResourceOptionsOrBuilder getResourceOptionsOrBuilder()

Optional. Options for Kubernetes resource generation.

.google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ResourceOptionsOrBuilder

hasResourceOptions()

public boolean hasResourceOptions()

Optional. Options for Kubernetes resource generation.

.google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the resourceOptions field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(KubernetesResource other)

public KubernetesResource.Builder mergeFrom(KubernetesResource other)
Parameter
NameDescription
otherKubernetesResource
Returns
TypeDescription
KubernetesResource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeResourceOptions(ResourceOptions value)

public KubernetesResource.Builder mergeResourceOptions(ResourceOptions value)

Optional. Options for Kubernetes resource generation.

.google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueResourceOptions
Returns
TypeDescription
KubernetesResource.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeConnectResources(int index)

public KubernetesResource.Builder removeConnectResources(int index)

Output only. The Kubernetes resources for installing the GKE Connect agent This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
KubernetesResource.Builder

removeMembershipResources(int index)

public KubernetesResource.Builder removeMembershipResources(int index)

Output only. Additional Kubernetes resources that need to be applied to the cluster after Membership creation, and after every update. This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
KubernetesResource.Builder

setConnectResources(int index, ResourceManifest value)

public KubernetesResource.Builder setConnectResources(int index, ResourceManifest value)

Output only. The Kubernetes resources for installing the GKE Connect agent This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueResourceManifest
Returns
TypeDescription
KubernetesResource.Builder

setConnectResources(int index, ResourceManifest.Builder builderForValue)

public KubernetesResource.Builder setConnectResources(int index, ResourceManifest.Builder builderForValue)

Output only. The Kubernetes resources for installing the GKE Connect agent This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueResourceManifest.Builder
Returns
TypeDescription
KubernetesResource.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public KubernetesResource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
KubernetesResource.Builder
Overrides

setMembershipCrManifest(String value)

public KubernetesResource.Builder setMembershipCrManifest(String value)

Input only. The YAML representation of the Membership CR. This field is ignored for GKE clusters where Hub can read the CR directly. Callers should provide the CR that is currently present in the cluster during CreateMembership or UpdateMembership, or leave this field empty if none exists. The CR manifest is used to validate the cluster has not been registered with another Membership.

string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
NameDescription
valueString

The membershipCrManifest to set.

Returns
TypeDescription
KubernetesResource.Builder

This builder for chaining.

setMembershipCrManifestBytes(ByteString value)

public KubernetesResource.Builder setMembershipCrManifestBytes(ByteString value)

Input only. The YAML representation of the Membership CR. This field is ignored for GKE clusters where Hub can read the CR directly. Callers should provide the CR that is currently present in the cluster during CreateMembership or UpdateMembership, or leave this field empty if none exists. The CR manifest is used to validate the cluster has not been registered with another Membership.

string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for membershipCrManifest to set.

Returns
TypeDescription
KubernetesResource.Builder

This builder for chaining.

setMembershipResources(int index, ResourceManifest value)

public KubernetesResource.Builder setMembershipResources(int index, ResourceManifest value)

Output only. Additional Kubernetes resources that need to be applied to the cluster after Membership creation, and after every update. This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueResourceManifest
Returns
TypeDescription
KubernetesResource.Builder

setMembershipResources(int index, ResourceManifest.Builder builderForValue)

public KubernetesResource.Builder setMembershipResources(int index, ResourceManifest.Builder builderForValue)

Output only. Additional Kubernetes resources that need to be applied to the cluster after Membership creation, and after every update. This field is only populated in the Membership returned from a successful long-running operation from CreateMembership or UpdateMembership. It is not populated during normal GetMembership or ListMemberships requests. To get the resource manifest after the initial registration, the caller should make a UpdateMembership call with an empty field mask.

repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueResourceManifest.Builder
Returns
TypeDescription
KubernetesResource.Builder

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

public KubernetesResource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
KubernetesResource.Builder
Overrides

setResourceOptions(ResourceOptions value)

public KubernetesResource.Builder setResourceOptions(ResourceOptions value)

Optional. Options for Kubernetes resource generation.

.google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueResourceOptions
Returns
TypeDescription
KubernetesResource.Builder

setResourceOptions(ResourceOptions.Builder builderForValue)

public KubernetesResource.Builder setResourceOptions(ResourceOptions.Builder builderForValue)

Optional. Options for Kubernetes resource generation.

.google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueResourceOptions.Builder
Returns
TypeDescription
KubernetesResource.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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