Package com.google.iam.v1
Class SetIamPolicyRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SetIamPolicyRequest.Builder>
-
- com.google.iam.v1.SetIamPolicyRequest.Builder
-
- All Implemented Interfaces:
SetIamPolicyRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SetIamPolicyRequest
public static final class SetIamPolicyRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SetIamPolicyRequest.Builder> implements SetIamPolicyRequestOrBuilder
Request message for `SetIamPolicy` method.
Protobuf typegoogle.iam.v1.SetIamPolicyRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SetIamPolicyRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SetIamPolicyRequestbuild()SetIamPolicyRequestbuildPartial()SetIamPolicyRequest.Builderclear()SetIamPolicyRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)SetIamPolicyRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)SetIamPolicyRequest.BuilderclearPolicy()REQUIRED: The complete policy to be applied to the `resource`.SetIamPolicyRequest.BuilderclearResource()REQUIRED: The resource for which the policy is being specified.SetIamPolicyRequest.BuilderclearUpdateMask()OPTIONAL: A FieldMask specifying which fields of the policy to modify.SetIamPolicyRequest.Builderclone()SetIamPolicyRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()PolicygetPolicy()REQUIRED: The complete policy to be applied to the `resource`.Policy.BuildergetPolicyBuilder()REQUIRED: The complete policy to be applied to the `resource`.PolicyOrBuildergetPolicyOrBuilder()REQUIRED: The complete policy to be applied to the `resource`.StringgetResource()REQUIRED: The resource for which the policy is being specified.com.google.protobuf.ByteStringgetResourceBytes()REQUIRED: The resource for which the policy is being specified.com.google.protobuf.FieldMaskgetUpdateMask()OPTIONAL: A FieldMask specifying which fields of the policy to modify.com.google.protobuf.FieldMask.BuildergetUpdateMaskBuilder()OPTIONAL: A FieldMask specifying which fields of the policy to modify.com.google.protobuf.FieldMaskOrBuildergetUpdateMaskOrBuilder()OPTIONAL: A FieldMask specifying which fields of the policy to modify.booleanhasPolicy()REQUIRED: The complete policy to be applied to the `resource`.booleanhasUpdateMask()OPTIONAL: A FieldMask specifying which fields of the policy to modify.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()SetIamPolicyRequest.BuildermergeFrom(SetIamPolicyRequest other)SetIamPolicyRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)SetIamPolicyRequest.BuildermergeFrom(com.google.protobuf.Message other)SetIamPolicyRequest.BuildermergePolicy(Policy value)REQUIRED: The complete policy to be applied to the `resource`.SetIamPolicyRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SetIamPolicyRequest.BuildermergeUpdateMask(com.google.protobuf.FieldMask value)OPTIONAL: A FieldMask specifying which fields of the policy to modify.SetIamPolicyRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SetIamPolicyRequest.BuildersetPolicy(Policy value)REQUIRED: The complete policy to be applied to the `resource`.SetIamPolicyRequest.BuildersetPolicy(Policy.Builder builderForValue)REQUIRED: The complete policy to be applied to the `resource`.SetIamPolicyRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)SetIamPolicyRequest.BuildersetResource(String value)REQUIRED: The resource for which the policy is being specified.SetIamPolicyRequest.BuildersetResourceBytes(com.google.protobuf.ByteString value)REQUIRED: The resource for which the policy is being specified.SetIamPolicyRequest.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SetIamPolicyRequest.BuildersetUpdateMask(com.google.protobuf.FieldMask value)OPTIONAL: A FieldMask specifying which fields of the policy to modify.SetIamPolicyRequest.BuildersetUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)OPTIONAL: A FieldMask specifying which fields of the policy to modify.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<SetIamPolicyRequest.Builder>
-
clear
public SetIamPolicyRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<SetIamPolicyRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<SetIamPolicyRequest.Builder>
-
getDefaultInstanceForType
public SetIamPolicyRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SetIamPolicyRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SetIamPolicyRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SetIamPolicyRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<SetIamPolicyRequest.Builder>
-
setField
public SetIamPolicyRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SetIamPolicyRequest.Builder>
-
clearField
public SetIamPolicyRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SetIamPolicyRequest.Builder>
-
clearOneof
public SetIamPolicyRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SetIamPolicyRequest.Builder>
-
setRepeatedField
public SetIamPolicyRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SetIamPolicyRequest.Builder>
-
addRepeatedField
public SetIamPolicyRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SetIamPolicyRequest.Builder>
-
mergeFrom
public SetIamPolicyRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SetIamPolicyRequest.Builder>
-
mergeFrom
public SetIamPolicyRequest.Builder mergeFrom(SetIamPolicyRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getResourcein interfaceSetIamPolicyRequestOrBuilder- 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:
getResourceBytesin interfaceSetIamPolicyRequestOrBuilder- 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:
hasPolicyin interfaceSetIamPolicyRequestOrBuilder- 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:
getPolicyin interfaceSetIamPolicyRequestOrBuilder- 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:
getPolicyOrBuilderin interfaceSetIamPolicyRequestOrBuilder
-
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:
hasUpdateMaskin interfaceSetIamPolicyRequestOrBuilder- 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:
getUpdateMaskin interfaceSetIamPolicyRequestOrBuilder- 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:
getUpdateMaskOrBuilderin interfaceSetIamPolicyRequestOrBuilder
-
setUnknownFields
public final SetIamPolicyRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SetIamPolicyRequest.Builder>
-
mergeUnknownFields
public final SetIamPolicyRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SetIamPolicyRequest.Builder>
-
-