Class KubernetesResource.Builder

  • All Implemented Interfaces:
    KubernetesResourceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    KubernetesResource

    public static final class KubernetesResource.Builder
    extends com.google.protobuf.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
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesResource.Builder>
      • clear

        public KubernetesResource.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesResource.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesResource.Builder>
      • getDefaultInstanceForType

        public KubernetesResource getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public KubernetesResource build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public KubernetesResource buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public KubernetesResource.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesResource.Builder>
      • setField

        public KubernetesResource.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesResource.Builder>
      • clearField

        public KubernetesResource.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesResource.Builder>
      • clearOneof

        public KubernetesResource.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesResource.Builder>
      • setRepeatedField

        public KubernetesResource.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           int index,
                                                           Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesResource.Builder>
      • addRepeatedField

        public KubernetesResource.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesResource.Builder>
      • mergeFrom

        public KubernetesResource.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<KubernetesResource.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesResource.Builder>
      • mergeFrom

        public KubernetesResource.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<KubernetesResource.Builder>
        Throws:
        IOException
      • 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];
        Specified by:
        getMembershipCrManifest in interface KubernetesResourceOrBuilder
        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 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];
        Specified by:
        getMembershipCrManifestBytes in interface KubernetesResourceOrBuilder
        Returns:
        The bytes for membershipCrManifest.
      • setMembershipCrManifest

        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];
        Parameters:
        value - The membershipCrManifest to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setMembershipCrManifestBytes

        public KubernetesResource.Builder setMembershipCrManifestBytes​(com.google.protobuf.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];
        Parameters:
        value - The bytes for membershipCrManifest to set.
        Returns:
        This builder for chaining.
      • 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];
        Specified by:
        getMembershipResourcesList in interface KubernetesResourceOrBuilder
      • 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];
        Specified by:
        getMembershipResourcesCount in interface KubernetesResourceOrBuilder
      • 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.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getMembershipResources in interface KubernetesResourceOrBuilder
      • setMembershipResources

        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];
      • setMembershipResources

        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];
      • addMembershipResources

        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];
      • addMembershipResources

        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];
      • addMembershipResources

        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];
      • addMembershipResources

        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];
      • addAllMembershipResources

        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];
      • 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];
      • removeMembershipResources

        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];
      • getMembershipResourcesBuilder

        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];
      • 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.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getMembershipResourcesOrBuilder in interface KubernetesResourceOrBuilder
      • 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];
        Specified by:
        getMembershipResourcesOrBuilderList in interface KubernetesResourceOrBuilder
      • 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];
      • addMembershipResourcesBuilder

        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];
      • 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];
      • 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];
        Specified by:
        getConnectResourcesList in interface KubernetesResourceOrBuilder
      • 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];
        Specified by:
        getConnectResourcesCount in interface KubernetesResourceOrBuilder
      • 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.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getConnectResources in interface KubernetesResourceOrBuilder
      • setConnectResources

        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];
      • setConnectResources

        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];
      • addConnectResources

        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];
      • addConnectResources

        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];
      • addConnectResources

        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];
      • addConnectResources

        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];
      • addAllConnectResources

        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];
      • 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];
      • removeConnectResources

        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];
      • getConnectResourcesBuilder

        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];
      • 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.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getConnectResourcesOrBuilder in interface KubernetesResourceOrBuilder
      • 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];
        Specified by:
        getConnectResourcesOrBuilderList in interface KubernetesResourceOrBuilder
      • 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];
      • addConnectResourcesBuilder

        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];
      • 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];
      • hasResourceOptions

        public boolean hasResourceOptions()
         Optional. Options for Kubernetes resource generation.
         
        .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasResourceOptions in interface KubernetesResourceOrBuilder
        Returns:
        Whether the resourceOptions field is set.
      • getResourceOptions

        public ResourceOptions getResourceOptions()
         Optional. Options for Kubernetes resource generation.
         
        .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getResourceOptions in interface KubernetesResourceOrBuilder
        Returns:
        The resourceOptions.
      • setResourceOptions

        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];
      • setResourceOptions

        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];
      • mergeResourceOptions

        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];
      • clearResourceOptions

        public KubernetesResource.Builder clearResourceOptions()
         Optional. Options for Kubernetes resource generation.
         
        .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL];
      • getResourceOptionsBuilder

        public ResourceOptions.Builder getResourceOptionsBuilder()
         Optional. Options for Kubernetes resource generation.
         
        .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL];
      • setUnknownFields

        public final KubernetesResource.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesResource.Builder>
      • mergeUnknownFields

        public final KubernetesResource.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesResource.Builder>