Class ErrorResource.Builder

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

    public static final class ErrorResource.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ErrorResource.Builder>
    implements ErrorResourceOrBuilder
     Model for a config file in the git repo with an associated Sync error
     
    Protobuf type google.cloud.gkehub.configmanagement.v1.ErrorResource
    • 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<ErrorResource.Builder>
      • clear

        public ErrorResource.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<ErrorResource.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<ErrorResource.Builder>
      • getDefaultInstanceForType

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

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

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

        public ErrorResource.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<ErrorResource.Builder>
      • setField

        public ErrorResource.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<ErrorResource.Builder>
      • clearField

        public ErrorResource.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<ErrorResource.Builder>
      • clearOneof

        public ErrorResource.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<ErrorResource.Builder>
      • setRepeatedField

        public ErrorResource.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<ErrorResource.Builder>
      • addRepeatedField

        public ErrorResource.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<ErrorResource.Builder>
      • mergeFrom

        public ErrorResource.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<ErrorResource.Builder>
      • isInitialized

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

        public ErrorResource.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<ErrorResource.Builder>
        Throws:
        IOException
      • getSourcePath

        public String getSourcePath()
         Path in the git repo of the erroneous config
         
        string source_path = 1;
        Specified by:
        getSourcePath in interface ErrorResourceOrBuilder
        Returns:
        The sourcePath.
      • getSourcePathBytes

        public com.google.protobuf.ByteString getSourcePathBytes()
         Path in the git repo of the erroneous config
         
        string source_path = 1;
        Specified by:
        getSourcePathBytes in interface ErrorResourceOrBuilder
        Returns:
        The bytes for sourcePath.
      • setSourcePath

        public ErrorResource.Builder setSourcePath​(String value)
         Path in the git repo of the erroneous config
         
        string source_path = 1;
        Parameters:
        value - The sourcePath to set.
        Returns:
        This builder for chaining.
      • clearSourcePath

        public ErrorResource.Builder clearSourcePath()
         Path in the git repo of the erroneous config
         
        string source_path = 1;
        Returns:
        This builder for chaining.
      • setSourcePathBytes

        public ErrorResource.Builder setSourcePathBytes​(com.google.protobuf.ByteString value)
         Path in the git repo of the erroneous config
         
        string source_path = 1;
        Parameters:
        value - The bytes for sourcePath to set.
        Returns:
        This builder for chaining.
      • getResourceName

        public String getResourceName()
         Metadata name of the resource that is causing an error
         
        string resource_name = 2;
        Specified by:
        getResourceName in interface ErrorResourceOrBuilder
        Returns:
        The resourceName.
      • getResourceNameBytes

        public com.google.protobuf.ByteString getResourceNameBytes()
         Metadata name of the resource that is causing an error
         
        string resource_name = 2;
        Specified by:
        getResourceNameBytes in interface ErrorResourceOrBuilder
        Returns:
        The bytes for resourceName.
      • setResourceName

        public ErrorResource.Builder setResourceName​(String value)
         Metadata name of the resource that is causing an error
         
        string resource_name = 2;
        Parameters:
        value - The resourceName to set.
        Returns:
        This builder for chaining.
      • clearResourceName

        public ErrorResource.Builder clearResourceName()
         Metadata name of the resource that is causing an error
         
        string resource_name = 2;
        Returns:
        This builder for chaining.
      • setResourceNameBytes

        public ErrorResource.Builder setResourceNameBytes​(com.google.protobuf.ByteString value)
         Metadata name of the resource that is causing an error
         
        string resource_name = 2;
        Parameters:
        value - The bytes for resourceName to set.
        Returns:
        This builder for chaining.
      • getResourceNamespace

        public String getResourceNamespace()
         Namespace of the resource that is causing an error
         
        string resource_namespace = 3;
        Specified by:
        getResourceNamespace in interface ErrorResourceOrBuilder
        Returns:
        The resourceNamespace.
      • getResourceNamespaceBytes

        public com.google.protobuf.ByteString getResourceNamespaceBytes()
         Namespace of the resource that is causing an error
         
        string resource_namespace = 3;
        Specified by:
        getResourceNamespaceBytes in interface ErrorResourceOrBuilder
        Returns:
        The bytes for resourceNamespace.
      • setResourceNamespace

        public ErrorResource.Builder setResourceNamespace​(String value)
         Namespace of the resource that is causing an error
         
        string resource_namespace = 3;
        Parameters:
        value - The resourceNamespace to set.
        Returns:
        This builder for chaining.
      • clearResourceNamespace

        public ErrorResource.Builder clearResourceNamespace()
         Namespace of the resource that is causing an error
         
        string resource_namespace = 3;
        Returns:
        This builder for chaining.
      • setResourceNamespaceBytes

        public ErrorResource.Builder setResourceNamespaceBytes​(com.google.protobuf.ByteString value)
         Namespace of the resource that is causing an error
         
        string resource_namespace = 3;
        Parameters:
        value - The bytes for resourceNamespace to set.
        Returns:
        This builder for chaining.
      • hasResourceGvk

        public boolean hasResourceGvk()
         Group/version/kind of the resource that is causing an error
         
        .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4;
        Specified by:
        hasResourceGvk in interface ErrorResourceOrBuilder
        Returns:
        Whether the resourceGvk field is set.
      • getResourceGvk

        public GroupVersionKind getResourceGvk()
         Group/version/kind of the resource that is causing an error
         
        .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4;
        Specified by:
        getResourceGvk in interface ErrorResourceOrBuilder
        Returns:
        The resourceGvk.
      • setResourceGvk

        public ErrorResource.Builder setResourceGvk​(GroupVersionKind value)
         Group/version/kind of the resource that is causing an error
         
        .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4;
      • setResourceGvk

        public ErrorResource.Builder setResourceGvk​(GroupVersionKind.Builder builderForValue)
         Group/version/kind of the resource that is causing an error
         
        .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4;
      • mergeResourceGvk

        public ErrorResource.Builder mergeResourceGvk​(GroupVersionKind value)
         Group/version/kind of the resource that is causing an error
         
        .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4;
      • clearResourceGvk

        public ErrorResource.Builder clearResourceGvk()
         Group/version/kind of the resource that is causing an error
         
        .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4;
      • getResourceGvkBuilder

        public GroupVersionKind.Builder getResourceGvkBuilder()
         Group/version/kind of the resource that is causing an error
         
        .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4;
      • setUnknownFields

        public final ErrorResource.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<ErrorResource.Builder>
      • mergeUnknownFields

        public final ErrorResource.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<ErrorResource.Builder>