public static final class GetPolicyOptions.Builder extends GeneratedMessageV3.Builder<GetPolicyOptions.Builder> implements GetPolicyOptionsOrBuilder
Encapsulates settings provided to GetIamPolicy.
Protobuf type google.iam.v1.GetPolicyOptions
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GetPolicyOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public GetPolicyOptions build()
Returns
buildPartial()
public GetPolicyOptions buildPartial()
Returns
clear()
public GetPolicyOptions.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public GetPolicyOptions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public GetPolicyOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearRequestedPolicyVersion()
public GetPolicyOptions.Builder clearRequestedPolicyVersion()
Optional. The policy format version to be returned.
Valid values are 0, 1, and 3. Requests specifying an invalid value will be
rejected.
Requests for policies with any conditional bindings must specify version 3.
Policies without any conditional bindings may specify any valid value or
leave the field unset.
int32 requested_policy_version = 1;
Returns
clone()
public GetPolicyOptions.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public GetPolicyOptions getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getRequestedPolicyVersion()
public int getRequestedPolicyVersion()
Optional. The policy format version to be returned.
Valid values are 0, 1, and 3. Requests specifying an invalid value will be
rejected.
Requests for policies with any conditional bindings must specify version 3.
Policies without any conditional bindings may specify any valid value or
leave the field unset.
int32 requested_policy_version = 1;
Returns
Type | Description |
int | The requestedPolicyVersion.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(GetPolicyOptions other)
public GetPolicyOptions.Builder mergeFrom(GetPolicyOptions other)
Parameter
Returns
public GetPolicyOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public GetPolicyOptions.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GetPolicyOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public GetPolicyOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GetPolicyOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setRequestedPolicyVersion(int value)
public GetPolicyOptions.Builder setRequestedPolicyVersion(int value)
Optional. The policy format version to be returned.
Valid values are 0, 1, and 3. Requests specifying an invalid value will be
rejected.
Requests for policies with any conditional bindings must specify version 3.
Policies without any conditional bindings may specify any valid value or
leave the field unset.
int32 requested_policy_version = 1;
Parameter
Name | Description |
value | int
The requestedPolicyVersion to set.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final GetPolicyOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides