public final class KubernetesResource extends GeneratedMessageV3 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.v1alpha2.KubernetesResource
Fields
CONNECT_RESOURCES_FIELD_NUMBER
public static final int CONNECT_RESOURCES_FIELD_NUMBER
Field Value
MEMBERSHIP_CR_MANIFEST_FIELD_NUMBER
public static final int MEMBERSHIP_CR_MANIFEST_FIELD_NUMBER
Field Value
MEMBERSHIP_RESOURCES_FIELD_NUMBER
public static final int MEMBERSHIP_RESOURCES_FIELD_NUMBER
Field Value
RESOURCE_OPTIONS_FIELD_NUMBER
public static final int RESOURCE_OPTIONS_FIELD_NUMBER
Field Value
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
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.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
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.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
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.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
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.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
List<? extends com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder> | |
getDefaultInstance()
public static KubernetesResource getDefaultInstance()
Returns
getDefaultInstanceForType()
public KubernetesResource getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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 Create or Update, 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
Type | Description |
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 Create or Update, 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
Type | Description |
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.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
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.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
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.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
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.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
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.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
List<? extends com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder> | |
getParserForType()
public Parser<KubernetesResource> getParserForType()
Returns
Overrides
getResourceOptions()
public ResourceOptions getResourceOptions()
Optional. Options for Kubernetes resource generation.
.google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns
getResourceOptionsOrBuilder()
public ResourceOptionsOrBuilder getResourceOptionsOrBuilder()
Optional. Options for Kubernetes resource generation.
.google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasResourceOptions()
public boolean hasResourceOptions()
Optional. Options for Kubernetes resource generation.
.google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type | Description |
boolean | Whether the resourceOptions field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static KubernetesResource.Builder newBuilder()
Returns
newBuilder(KubernetesResource prototype)
public static KubernetesResource.Builder newBuilder(KubernetesResource prototype)
Parameter
Returns
newBuilderForType()
public KubernetesResource.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected KubernetesResource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static KubernetesResource parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static KubernetesResource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static KubernetesResource parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static KubernetesResource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static KubernetesResource parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static KubernetesResource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static KubernetesResource parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static KubernetesResource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static KubernetesResource parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static KubernetesResource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static KubernetesResource parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static KubernetesResource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<KubernetesResource> parser()
Returns
toBuilder()
public KubernetesResource.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions