Package com.google.cloud.gkehub.v1alpha2
Class KubernetesResource
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.gkehub.v1alpha2.KubernetesResource
-
- All Implemented Interfaces:
KubernetesResourceOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class KubernetesResource extends com.google.protobuf.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 typegoogle.cloud.gkehub.v1alpha2.KubernetesResource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KubernetesResource.Builder
KubernetesResource contains the YAML manifests and configuration for Membership Kubernetes resources in the cluster.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
CONNECT_RESOURCES_FIELD_NUMBER
static int
MEMBERSHIP_CR_MANIFEST_FIELD_NUMBER
static int
MEMBERSHIP_RESOURCES_FIELD_NUMBER
static int
RESOURCE_OPTIONS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
ResourceManifest
getConnectResources(int index)
Output only.int
getConnectResourcesCount()
Output only.List<ResourceManifest>
getConnectResourcesList()
Output only.ResourceManifestOrBuilder
getConnectResourcesOrBuilder(int index)
Output only.List<? extends ResourceManifestOrBuilder>
getConnectResourcesOrBuilderList()
Output only.static KubernetesResource
getDefaultInstance()
KubernetesResource
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getMembershipCrManifest()
Input only.com.google.protobuf.ByteString
getMembershipCrManifestBytes()
Input only.ResourceManifest
getMembershipResources(int index)
Output only.int
getMembershipResourcesCount()
Output only.List<ResourceManifest>
getMembershipResourcesList()
Output only.ResourceManifestOrBuilder
getMembershipResourcesOrBuilder(int index)
Output only.List<? extends ResourceManifestOrBuilder>
getMembershipResourcesOrBuilderList()
Output only.com.google.protobuf.Parser<KubernetesResource>
getParserForType()
ResourceOptions
getResourceOptions()
Optional.ResourceOptionsOrBuilder
getResourceOptionsOrBuilder()
Optional.int
getSerializedSize()
int
hashCode()
boolean
hasResourceOptions()
Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static KubernetesResource.Builder
newBuilder()
static KubernetesResource.Builder
newBuilder(KubernetesResource prototype)
KubernetesResource.Builder
newBuilderForType()
protected KubernetesResource.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static KubernetesResource
parseDelimitedFrom(InputStream input)
static KubernetesResource
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static KubernetesResource
parseFrom(byte[] data)
static KubernetesResource
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static KubernetesResource
parseFrom(com.google.protobuf.ByteString data)
static KubernetesResource
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static KubernetesResource
parseFrom(com.google.protobuf.CodedInputStream input)
static KubernetesResource
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static KubernetesResource
parseFrom(InputStream input)
static KubernetesResource
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static KubernetesResource
parseFrom(ByteBuffer data)
static KubernetesResource
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<KubernetesResource>
parser()
KubernetesResource.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
MEMBERSHIP_CR_MANIFEST_FIELD_NUMBER
public static final int MEMBERSHIP_CR_MANIFEST_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MEMBERSHIP_RESOURCES_FIELD_NUMBER
public static final int MEMBERSHIP_RESOURCES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONNECT_RESOURCES_FIELD_NUMBER
public static final int CONNECT_RESOURCES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESOURCE_OPTIONS_FIELD_NUMBER
public static final int RESOURCE_OPTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
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];
- Specified by:
getMembershipCrManifest
in interfaceKubernetesResourceOrBuilder
- Returns:
- The membershipCrManifest.
-
getMembershipCrManifestBytes
public com.google.protobuf.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];
- Specified by:
getMembershipCrManifestBytes
in interfaceKubernetesResourceOrBuilder
- Returns:
- The bytes for membershipCrManifest.
-
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];
- Specified by:
getMembershipResourcesList
in interfaceKubernetesResourceOrBuilder
-
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];
- Specified by:
getMembershipResourcesOrBuilderList
in interfaceKubernetesResourceOrBuilder
-
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];
- Specified by:
getMembershipResourcesCount
in interfaceKubernetesResourceOrBuilder
-
getMembershipResources
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];
- Specified by:
getMembershipResources
in interfaceKubernetesResourceOrBuilder
-
getMembershipResourcesOrBuilder
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];
- Specified by:
getMembershipResourcesOrBuilder
in interfaceKubernetesResourceOrBuilder
-
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];
- Specified by:
getConnectResourcesList
in interfaceKubernetesResourceOrBuilder
-
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];
- Specified by:
getConnectResourcesOrBuilderList
in interfaceKubernetesResourceOrBuilder
-
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];
- Specified by:
getConnectResourcesCount
in interfaceKubernetesResourceOrBuilder
-
getConnectResources
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];
- Specified by:
getConnectResources
in interfaceKubernetesResourceOrBuilder
-
getConnectResourcesOrBuilder
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];
- Specified by:
getConnectResourcesOrBuilder
in interfaceKubernetesResourceOrBuilder
-
hasResourceOptions
public boolean hasResourceOptions()
Optional. Options for Kubernetes resource generation.
.google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
hasResourceOptions
in interfaceKubernetesResourceOrBuilder
- Returns:
- Whether the resourceOptions field is set.
-
getResourceOptions
public ResourceOptions getResourceOptions()
Optional. Options for Kubernetes resource generation.
.google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getResourceOptions
in interfaceKubernetesResourceOrBuilder
- Returns:
- The resourceOptions.
-
getResourceOptionsOrBuilder
public ResourceOptionsOrBuilder getResourceOptionsOrBuilder()
Optional. Options for Kubernetes resource generation.
.google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getResourceOptionsOrBuilder
in interfaceKubernetesResourceOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static KubernetesResource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static KubernetesResource parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static KubernetesResource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static KubernetesResource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static KubernetesResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static KubernetesResource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static KubernetesResource parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static KubernetesResource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static KubernetesResource parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static KubernetesResource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static KubernetesResource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static KubernetesResource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public KubernetesResource.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static KubernetesResource.Builder newBuilder()
-
newBuilder
public static KubernetesResource.Builder newBuilder(KubernetesResource prototype)
-
toBuilder
public KubernetesResource.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected KubernetesResource.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static KubernetesResource getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<KubernetesResource> parser()
-
getParserForType
public com.google.protobuf.Parser<KubernetesResource> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public KubernetesResource getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-