Class Generated.TypedObjectReference.Builder

    • 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<Generated.TypedObjectReference.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<Generated.TypedObjectReference.Builder>
      • getDefaultInstanceForType

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

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

        public Generated.TypedObjectReference buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

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

        public boolean hasApiGroup()
         APIGroup is the group for the resource being referenced.
         If APIGroup is not specified, the specified Kind must be in the core API group.
         For any other third-party types, APIGroup is required.
         +optional
         
        optional string apiGroup = 1;
        Specified by:
        hasApiGroup in interface Generated.TypedObjectReferenceOrBuilder
        Returns:
        Whether the apiGroup field is set.
      • getApiGroup

        public String getApiGroup()
         APIGroup is the group for the resource being referenced.
         If APIGroup is not specified, the specified Kind must be in the core API group.
         For any other third-party types, APIGroup is required.
         +optional
         
        optional string apiGroup = 1;
        Specified by:
        getApiGroup in interface Generated.TypedObjectReferenceOrBuilder
        Returns:
        The apiGroup.
      • getApiGroupBytes

        public com.google.protobuf.ByteString getApiGroupBytes()
         APIGroup is the group for the resource being referenced.
         If APIGroup is not specified, the specified Kind must be in the core API group.
         For any other third-party types, APIGroup is required.
         +optional
         
        optional string apiGroup = 1;
        Specified by:
        getApiGroupBytes in interface Generated.TypedObjectReferenceOrBuilder
        Returns:
        The bytes for apiGroup.
      • setApiGroup

        public Generated.TypedObjectReference.Builder setApiGroup​(String value)
         APIGroup is the group for the resource being referenced.
         If APIGroup is not specified, the specified Kind must be in the core API group.
         For any other third-party types, APIGroup is required.
         +optional
         
        optional string apiGroup = 1;
        Parameters:
        value - The apiGroup to set.
        Returns:
        This builder for chaining.
      • clearApiGroup

        public Generated.TypedObjectReference.Builder clearApiGroup()
         APIGroup is the group for the resource being referenced.
         If APIGroup is not specified, the specified Kind must be in the core API group.
         For any other third-party types, APIGroup is required.
         +optional
         
        optional string apiGroup = 1;
        Returns:
        This builder for chaining.
      • setApiGroupBytes

        public Generated.TypedObjectReference.Builder setApiGroupBytes​(com.google.protobuf.ByteString value)
         APIGroup is the group for the resource being referenced.
         If APIGroup is not specified, the specified Kind must be in the core API group.
         For any other third-party types, APIGroup is required.
         +optional
         
        optional string apiGroup = 1;
        Parameters:
        value - The bytes for apiGroup to set.
        Returns:
        This builder for chaining.
      • setKind

        public Generated.TypedObjectReference.Builder setKind​(String value)
         Kind is the type of resource being referenced
         
        optional string kind = 2;
        Parameters:
        value - The kind to set.
        Returns:
        This builder for chaining.
      • setKindBytes

        public Generated.TypedObjectReference.Builder setKindBytes​(com.google.protobuf.ByteString value)
         Kind is the type of resource being referenced
         
        optional string kind = 2;
        Parameters:
        value - The bytes for kind to set.
        Returns:
        This builder for chaining.
      • setName

        public Generated.TypedObjectReference.Builder setName​(String value)
         Name is the name of resource being referenced
         
        optional string name = 3;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • setNameBytes

        public Generated.TypedObjectReference.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Name is the name of resource being referenced
         
        optional string name = 3;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasNamespace

        public boolean hasNamespace()
         Namespace is the namespace of resource being referenced
         Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.
         (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
         +featureGate=CrossNamespaceVolumeDataSource
         +optional
         
        optional string namespace = 4;
        Specified by:
        hasNamespace in interface Generated.TypedObjectReferenceOrBuilder
        Returns:
        Whether the namespace field is set.
      • getNamespace

        public String getNamespace()
         Namespace is the namespace of resource being referenced
         Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.
         (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
         +featureGate=CrossNamespaceVolumeDataSource
         +optional
         
        optional string namespace = 4;
        Specified by:
        getNamespace in interface Generated.TypedObjectReferenceOrBuilder
        Returns:
        The namespace.
      • getNamespaceBytes

        public com.google.protobuf.ByteString getNamespaceBytes()
         Namespace is the namespace of resource being referenced
         Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.
         (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
         +featureGate=CrossNamespaceVolumeDataSource
         +optional
         
        optional string namespace = 4;
        Specified by:
        getNamespaceBytes in interface Generated.TypedObjectReferenceOrBuilder
        Returns:
        The bytes for namespace.
      • setNamespace

        public Generated.TypedObjectReference.Builder setNamespace​(String value)
         Namespace is the namespace of resource being referenced
         Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.
         (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
         +featureGate=CrossNamespaceVolumeDataSource
         +optional
         
        optional string namespace = 4;
        Parameters:
        value - The namespace to set.
        Returns:
        This builder for chaining.
      • clearNamespace

        public Generated.TypedObjectReference.Builder clearNamespace()
         Namespace is the namespace of resource being referenced
         Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.
         (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
         +featureGate=CrossNamespaceVolumeDataSource
         +optional
         
        optional string namespace = 4;
        Returns:
        This builder for chaining.
      • setNamespaceBytes

        public Generated.TypedObjectReference.Builder setNamespaceBytes​(com.google.protobuf.ByteString value)
         Namespace is the namespace of resource being referenced
         Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.
         (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
         +featureGate=CrossNamespaceVolumeDataSource
         +optional
         
        optional string namespace = 4;
        Parameters:
        value - The bytes for namespace to set.
        Returns:
        This builder for chaining.