Class SetIamPolicyRequest.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<SetIamPolicyRequest.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public SetIamPolicyRequest.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<SetIamPolicyRequest.Builder>
        Throws:
        IOException
      • getResource

        public String getResource()
         REQUIRED: The resource for which the policy is being specified.
         See the operation documentation for the appropriate value for this field.
         
        string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getResource in interface SetIamPolicyRequestOrBuilder
        Returns:
        The resource.
      • getResourceBytes

        public com.google.protobuf.ByteString getResourceBytes()
         REQUIRED: The resource for which the policy is being specified.
         See the operation documentation for the appropriate value for this field.
         
        string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceBytes in interface SetIamPolicyRequestOrBuilder
        Returns:
        The bytes for resource.
      • setResource

        public SetIamPolicyRequest.Builder setResource​(String value)
         REQUIRED: The resource for which the policy is being specified.
         See the operation documentation for the appropriate value for this field.
         
        string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The resource to set.
        Returns:
        This builder for chaining.
      • clearResource

        public SetIamPolicyRequest.Builder clearResource()
         REQUIRED: The resource for which the policy is being specified.
         See the operation documentation for the appropriate value for this field.
         
        string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setResourceBytes

        public SetIamPolicyRequest.Builder setResourceBytes​(com.google.protobuf.ByteString value)
         REQUIRED: The resource for which the policy is being specified.
         See the operation documentation for the appropriate value for this field.
         
        string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for resource to set.
        Returns:
        This builder for chaining.
      • hasPolicy

        public boolean hasPolicy()
         REQUIRED: The complete policy to be applied to the `resource`. The size of
         the policy is limited to a few 10s of KB. An empty policy is a
         valid policy but certain Cloud Platform services (such as Projects)
         might reject them.
         
        .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasPolicy in interface SetIamPolicyRequestOrBuilder
        Returns:
        Whether the policy field is set.
      • getPolicy

        public Policy getPolicy()
         REQUIRED: The complete policy to be applied to the `resource`. The size of
         the policy is limited to a few 10s of KB. An empty policy is a
         valid policy but certain Cloud Platform services (such as Projects)
         might reject them.
         
        .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getPolicy in interface SetIamPolicyRequestOrBuilder
        Returns:
        The policy.
      • setPolicy

        public SetIamPolicyRequest.Builder setPolicy​(Policy value)
         REQUIRED: The complete policy to be applied to the `resource`. The size of
         the policy is limited to a few 10s of KB. An empty policy is a
         valid policy but certain Cloud Platform services (such as Projects)
         might reject them.
         
        .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
      • setPolicy

        public SetIamPolicyRequest.Builder setPolicy​(Policy.Builder builderForValue)
         REQUIRED: The complete policy to be applied to the `resource`. The size of
         the policy is limited to a few 10s of KB. An empty policy is a
         valid policy but certain Cloud Platform services (such as Projects)
         might reject them.
         
        .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
      • mergePolicy

        public SetIamPolicyRequest.Builder mergePolicy​(Policy value)
         REQUIRED: The complete policy to be applied to the `resource`. The size of
         the policy is limited to a few 10s of KB. An empty policy is a
         valid policy but certain Cloud Platform services (such as Projects)
         might reject them.
         
        .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearPolicy

        public SetIamPolicyRequest.Builder clearPolicy()
         REQUIRED: The complete policy to be applied to the `resource`. The size of
         the policy is limited to a few 10s of KB. An empty policy is a
         valid policy but certain Cloud Platform services (such as Projects)
         might reject them.
         
        .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
      • getPolicyBuilder

        public Policy.Builder getPolicyBuilder()
         REQUIRED: The complete policy to be applied to the `resource`. The size of
         the policy is limited to a few 10s of KB. An empty policy is a
         valid policy but certain Cloud Platform services (such as Projects)
         might reject them.
         
        .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
      • getPolicyOrBuilder

        public PolicyOrBuilder getPolicyOrBuilder()
         REQUIRED: The complete policy to be applied to the `resource`. The size of
         the policy is limited to a few 10s of KB. An empty policy is a
         valid policy but certain Cloud Platform services (such as Projects)
         might reject them.
         
        .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getPolicyOrBuilder in interface SetIamPolicyRequestOrBuilder
      • hasUpdateMask

        public boolean hasUpdateMask()
         OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
         the fields in the mask will be modified. If no mask is provided, the
         following default mask is used:
         `paths: "bindings, etag"`
         
        .google.protobuf.FieldMask update_mask = 3;
        Specified by:
        hasUpdateMask in interface SetIamPolicyRequestOrBuilder
        Returns:
        Whether the updateMask field is set.
      • getUpdateMask

        public com.google.protobuf.FieldMask getUpdateMask()
         OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
         the fields in the mask will be modified. If no mask is provided, the
         following default mask is used:
         `paths: "bindings, etag"`
         
        .google.protobuf.FieldMask update_mask = 3;
        Specified by:
        getUpdateMask in interface SetIamPolicyRequestOrBuilder
        Returns:
        The updateMask.
      • setUpdateMask

        public SetIamPolicyRequest.Builder setUpdateMask​(com.google.protobuf.FieldMask value)
         OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
         the fields in the mask will be modified. If no mask is provided, the
         following default mask is used:
         `paths: "bindings, etag"`
         
        .google.protobuf.FieldMask update_mask = 3;
      • setUpdateMask

        public SetIamPolicyRequest.Builder setUpdateMask​(com.google.protobuf.FieldMask.Builder builderForValue)
         OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
         the fields in the mask will be modified. If no mask is provided, the
         following default mask is used:
         `paths: "bindings, etag"`
         
        .google.protobuf.FieldMask update_mask = 3;
      • mergeUpdateMask

        public SetIamPolicyRequest.Builder mergeUpdateMask​(com.google.protobuf.FieldMask value)
         OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
         the fields in the mask will be modified. If no mask is provided, the
         following default mask is used:
         `paths: "bindings, etag"`
         
        .google.protobuf.FieldMask update_mask = 3;
      • clearUpdateMask

        public SetIamPolicyRequest.Builder clearUpdateMask()
         OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
         the fields in the mask will be modified. If no mask is provided, the
         following default mask is used:
         `paths: "bindings, etag"`
         
        .google.protobuf.FieldMask update_mask = 3;
      • getUpdateMaskBuilder

        public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
         OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
         the fields in the mask will be modified. If no mask is provided, the
         following default mask is used:
         `paths: "bindings, etag"`
         
        .google.protobuf.FieldMask update_mask = 3;
      • getUpdateMaskOrBuilder

        public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
         OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
         the fields in the mask will be modified. If no mask is provided, the
         following default mask is used:
         `paths: "bindings, etag"`
         
        .google.protobuf.FieldMask update_mask = 3;
        Specified by:
        getUpdateMaskOrBuilder in interface SetIamPolicyRequestOrBuilder
      • setUnknownFields

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

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