Class Workload.SaaEnrollmentResponse.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<Workload.SaaEnrollmentResponse.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<Workload.SaaEnrollmentResponse.Builder>
      • getDefaultInstanceForType

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

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

        public Workload.SaaEnrollmentResponse 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<Workload.SaaEnrollmentResponse.Builder>
      • hasSetupStatus

        public boolean hasSetupStatus()
         Indicates SAA enrollment status of a given workload.
         
        optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1;
        Specified by:
        hasSetupStatus in interface Workload.SaaEnrollmentResponseOrBuilder
        Returns:
        Whether the setupStatus field is set.
      • getSetupStatusValue

        public int getSetupStatusValue()
         Indicates SAA enrollment status of a given workload.
         
        optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1;
        Specified by:
        getSetupStatusValue in interface Workload.SaaEnrollmentResponseOrBuilder
        Returns:
        The enum numeric value on the wire for setupStatus.
      • setSetupStatusValue

        public Workload.SaaEnrollmentResponse.Builder setSetupStatusValue​(int value)
         Indicates SAA enrollment status of a given workload.
         
        optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1;
        Parameters:
        value - The enum numeric value on the wire for setupStatus to set.
        Returns:
        This builder for chaining.
      • clearSetupStatus

        public Workload.SaaEnrollmentResponse.Builder clearSetupStatus()
         Indicates SAA enrollment status of a given workload.
         
        optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1;
        Returns:
        This builder for chaining.
      • getSetupErrorsCount

        public int getSetupErrorsCount()
         Indicates SAA enrollment setup error if any.
         
        repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2;
        Specified by:
        getSetupErrorsCount in interface Workload.SaaEnrollmentResponseOrBuilder
        Returns:
        The count of setupErrors.
      • setSetupErrors

        public Workload.SaaEnrollmentResponse.Builder setSetupErrors​(int index,
                                                                     Workload.SaaEnrollmentResponse.SetupError value)
         Indicates SAA enrollment setup error if any.
         
        repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2;
        Parameters:
        index - The index to set the value at.
        value - The setupErrors to set.
        Returns:
        This builder for chaining.
      • clearSetupErrors

        public Workload.SaaEnrollmentResponse.Builder clearSetupErrors()
         Indicates SAA enrollment setup error if any.
         
        repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2;
        Returns:
        This builder for chaining.
      • getSetupErrorsValueList

        public List<Integer> getSetupErrorsValueList()
         Indicates SAA enrollment setup error if any.
         
        repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2;
        Specified by:
        getSetupErrorsValueList in interface Workload.SaaEnrollmentResponseOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for setupErrors.
      • getSetupErrorsValue

        public int getSetupErrorsValue​(int index)
         Indicates SAA enrollment setup error if any.
         
        repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2;
        Specified by:
        getSetupErrorsValue in interface Workload.SaaEnrollmentResponseOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of setupErrors at the given index.
      • setSetupErrorsValue

        public Workload.SaaEnrollmentResponse.Builder setSetupErrorsValue​(int index,
                                                                          int value)
         Indicates SAA enrollment setup error if any.
         
        repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2;
        Parameters:
        index - The index to set the value at.
        value - The enum numeric value on the wire for setupErrors to set.
        Returns:
        This builder for chaining.
      • addSetupErrorsValue

        public Workload.SaaEnrollmentResponse.Builder addSetupErrorsValue​(int value)
         Indicates SAA enrollment setup error if any.
         
        repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2;
        Parameters:
        value - The enum numeric value on the wire for setupErrors to add.
        Returns:
        This builder for chaining.
      • addAllSetupErrorsValue

        public Workload.SaaEnrollmentResponse.Builder addAllSetupErrorsValue​(Iterable<Integer> values)
         Indicates SAA enrollment setup error if any.
         
        repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2;
        Parameters:
        values - The enum numeric values on the wire for setupErrors to add.
        Returns:
        This builder for chaining.