Class IamPolicyAnalysisState.Builder

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

    public static final class IamPolicyAnalysisState.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<IamPolicyAnalysisState.Builder>
    implements IamPolicyAnalysisStateOrBuilder
     Represents the detailed state of an entity under analysis, such as a
     resource, an identity or an access.
     
    Protobuf type google.cloud.asset.v1.IamPolicyAnalysisState
    • 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<IamPolicyAnalysisState.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

        public IamPolicyAnalysisState.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<IamPolicyAnalysisState.Builder>
        Throws:
        IOException
      • getCodeValue

        public int getCodeValue()
         The Google standard error code that best describes the state.
         For example:
         - OK means the analysis on this entity has been successfully finished;
         - PERMISSION_DENIED means an access denied error is encountered;
         - DEADLINE_EXCEEDED means the analysis on this entity hasn't been started
         in time;
         
        .google.rpc.Code code = 1;
        Specified by:
        getCodeValue in interface IamPolicyAnalysisStateOrBuilder
        Returns:
        The enum numeric value on the wire for code.
      • setCodeValue

        public IamPolicyAnalysisState.Builder setCodeValue​(int value)
         The Google standard error code that best describes the state.
         For example:
         - OK means the analysis on this entity has been successfully finished;
         - PERMISSION_DENIED means an access denied error is encountered;
         - DEADLINE_EXCEEDED means the analysis on this entity hasn't been started
         in time;
         
        .google.rpc.Code code = 1;
        Parameters:
        value - The enum numeric value on the wire for code to set.
        Returns:
        This builder for chaining.
      • getCode

        public com.google.rpc.Code getCode()
         The Google standard error code that best describes the state.
         For example:
         - OK means the analysis on this entity has been successfully finished;
         - PERMISSION_DENIED means an access denied error is encountered;
         - DEADLINE_EXCEEDED means the analysis on this entity hasn't been started
         in time;
         
        .google.rpc.Code code = 1;
        Specified by:
        getCode in interface IamPolicyAnalysisStateOrBuilder
        Returns:
        The code.
      • setCode

        public IamPolicyAnalysisState.Builder setCode​(com.google.rpc.Code value)
         The Google standard error code that best describes the state.
         For example:
         - OK means the analysis on this entity has been successfully finished;
         - PERMISSION_DENIED means an access denied error is encountered;
         - DEADLINE_EXCEEDED means the analysis on this entity hasn't been started
         in time;
         
        .google.rpc.Code code = 1;
        Parameters:
        value - The code to set.
        Returns:
        This builder for chaining.
      • clearCode

        public IamPolicyAnalysisState.Builder clearCode()
         The Google standard error code that best describes the state.
         For example:
         - OK means the analysis on this entity has been successfully finished;
         - PERMISSION_DENIED means an access denied error is encountered;
         - DEADLINE_EXCEEDED means the analysis on this entity hasn't been started
         in time;
         
        .google.rpc.Code code = 1;
        Returns:
        This builder for chaining.
      • getCauseBytes

        public com.google.protobuf.ByteString getCauseBytes()
         The human-readable description of the cause of failure.
         
        string cause = 2;
        Specified by:
        getCauseBytes in interface IamPolicyAnalysisStateOrBuilder
        Returns:
        The bytes for cause.
      • setCause

        public IamPolicyAnalysisState.Builder setCause​(String value)
         The human-readable description of the cause of failure.
         
        string cause = 2;
        Parameters:
        value - The cause to set.
        Returns:
        This builder for chaining.
      • clearCause

        public IamPolicyAnalysisState.Builder clearCause()
         The human-readable description of the cause of failure.
         
        string cause = 2;
        Returns:
        This builder for chaining.
      • setCauseBytes

        public IamPolicyAnalysisState.Builder setCauseBytes​(com.google.protobuf.ByteString value)
         The human-readable description of the cause of failure.
         
        string cause = 2;
        Parameters:
        value - The bytes for cause to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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