- 2.62.0 (latest)
- 2.61.3
- 2.60.0
- 2.59.2
- 2.58.0
- 2.57.0
- 2.56.0
- 2.54.1
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.1
- 2.49.0
- 2.48.0
- 2.46.0
- 2.45.1
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.1
- 2.38.0
- 2.37.1
- 2.36.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.1
- 2.24.0
- 2.23.1
- 2.22.1
- 2.21.1
- 2.15.0
- 2.14.3
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.6
- 2.8.4
- 2.7.4
public static final class AuthenticationRule.Builder extends GeneratedMessageV3.Builder<AuthenticationRule.Builder> implements AuthenticationRuleOrBuilderAuthentication rules for the service. By default, if a method has any authentication requirements, every request must include a valid credential matching one of the requirements. It's an error to include more than one kind of credential in a single request. If a method doesn't have any auth requirements, request credentials will be ignored.
Protobuf type google.api.AuthenticationRule
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AuthenticationRule.BuilderImplements
AuthenticationRuleOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Type | Description |
| Descriptor |
Methods
addAllRequirements(Iterable<? extends AuthRequirement> values)
public AuthenticationRule.Builder addAllRequirements(Iterable<? extends AuthRequirement> values)Requirements for additional authentication providers.
repeated .google.api.AuthRequirement requirements = 7;
| Name | Description |
| values | Iterable<? extends com.google.api.AuthRequirement> |
| Type | Description |
| AuthenticationRule.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AuthenticationRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| AuthenticationRule.Builder |
addRequirements(AuthRequirement value)
public AuthenticationRule.Builder addRequirements(AuthRequirement value)Requirements for additional authentication providers.
repeated .google.api.AuthRequirement requirements = 7;
| Name | Description |
| value | AuthRequirement |
| Type | Description |
| AuthenticationRule.Builder |
addRequirements(AuthRequirement.Builder builderForValue)
public AuthenticationRule.Builder addRequirements(AuthRequirement.Builder builderForValue)Requirements for additional authentication providers.
repeated .google.api.AuthRequirement requirements = 7;
| Name | Description |
| builderForValue | AuthRequirement.Builder |
| Type | Description |
| AuthenticationRule.Builder |
addRequirements(int index, AuthRequirement value)
public AuthenticationRule.Builder addRequirements(int index, AuthRequirement value)Requirements for additional authentication providers.
repeated .google.api.AuthRequirement requirements = 7;
| Name | Description |
| index | int |
| value | AuthRequirement |
| Type | Description |
| AuthenticationRule.Builder |
addRequirements(int index, AuthRequirement.Builder builderForValue)
public AuthenticationRule.Builder addRequirements(int index, AuthRequirement.Builder builderForValue)Requirements for additional authentication providers.
repeated .google.api.AuthRequirement requirements = 7;
| Name | Description |
| index | int |
| builderForValue | AuthRequirement.Builder |
| Type | Description |
| AuthenticationRule.Builder |
addRequirementsBuilder()
public AuthRequirement.Builder addRequirementsBuilder()Requirements for additional authentication providers.
repeated .google.api.AuthRequirement requirements = 7;
| Type | Description |
| AuthRequirement.Builder |
addRequirementsBuilder(int index)
public AuthRequirement.Builder addRequirementsBuilder(int index)Requirements for additional authentication providers.
repeated .google.api.AuthRequirement requirements = 7;
| Name | Description |
| index | int |
| Type | Description |
| AuthRequirement.Builder |
build()
public AuthenticationRule build()| Type | Description |
| AuthenticationRule |
buildPartial()
public AuthenticationRule buildPartial()| Type | Description |
| AuthenticationRule |
clear()
public AuthenticationRule.Builder clear()| Type | Description |
| AuthenticationRule.Builder |
clearAllowWithoutCredential()
public AuthenticationRule.Builder clearAllowWithoutCredential()If true, the service accepts API keys without any other credential. This flag only applies to HTTP and gRPC requests.
bool allow_without_credential = 5;
| Type | Description |
| AuthenticationRule.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public AuthenticationRule.Builder clearField(Descriptors.FieldDescriptor field)| Name | Description |
| field | FieldDescriptor |
| Type | Description |
| AuthenticationRule.Builder |
clearOauth()
public AuthenticationRule.Builder clearOauth()The requirements for OAuth credentials.
.google.api.OAuthRequirements oauth = 2;
| Type | Description |
| AuthenticationRule.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public AuthenticationRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Name | Description |
| oneof | OneofDescriptor |
| Type | Description |
| AuthenticationRule.Builder |
clearRequirements()
public AuthenticationRule.Builder clearRequirements()Requirements for additional authentication providers.
repeated .google.api.AuthRequirement requirements = 7;
| Type | Description |
| AuthenticationRule.Builder |
clearSelector()
public AuthenticationRule.Builder clearSelector()Selects the methods to which this rule applies. Refer to selector for syntax details.
string selector = 1;
| Type | Description |
| AuthenticationRule.Builder | This builder for chaining. |
clone()
public AuthenticationRule.Builder clone()| Type | Description |
| AuthenticationRule.Builder |
getAllowWithoutCredential()
public boolean getAllowWithoutCredential()If true, the service accepts API keys without any other credential. This flag only applies to HTTP and gRPC requests.
bool allow_without_credential = 5;
| Type | Description |
| boolean | The allowWithoutCredential. |
getDefaultInstanceForType()
public AuthenticationRule getDefaultInstanceForType()| Type | Description |
| AuthenticationRule |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Type | Description |
| Descriptor |
getOauth()
public OAuthRequirements getOauth()The requirements for OAuth credentials.
.google.api.OAuthRequirements oauth = 2;
| Type | Description |
| OAuthRequirements | The oauth. |
getOauthBuilder()
public OAuthRequirements.Builder getOauthBuilder()The requirements for OAuth credentials.
.google.api.OAuthRequirements oauth = 2;
| Type | Description |
| OAuthRequirements.Builder |
getOauthOrBuilder()
public OAuthRequirementsOrBuilder getOauthOrBuilder()The requirements for OAuth credentials.
.google.api.OAuthRequirements oauth = 2;
| Type | Description |
| OAuthRequirementsOrBuilder |
getRequirements(int index)
public AuthRequirement getRequirements(int index)Requirements for additional authentication providers.
repeated .google.api.AuthRequirement requirements = 7;
| Name | Description |
| index | int |
| Type | Description |
| AuthRequirement |
getRequirementsBuilder(int index)
public AuthRequirement.Builder getRequirementsBuilder(int index)Requirements for additional authentication providers.
repeated .google.api.AuthRequirement requirements = 7;
| Name | Description |
| index | int |
| Type | Description |
| AuthRequirement.Builder |
getRequirementsBuilderList()
public List<AuthRequirement.Builder> getRequirementsBuilderList()Requirements for additional authentication providers.
repeated .google.api.AuthRequirement requirements = 7;
| Type | Description |
| List<Builder> |
getRequirementsCount()
public int getRequirementsCount()Requirements for additional authentication providers.
repeated .google.api.AuthRequirement requirements = 7;
| Type | Description |
| int |
getRequirementsList()
public List<AuthRequirement> getRequirementsList()Requirements for additional authentication providers.
repeated .google.api.AuthRequirement requirements = 7;
| Type | Description |
| List<AuthRequirement> |
getRequirementsOrBuilder(int index)
public AuthRequirementOrBuilder getRequirementsOrBuilder(int index)Requirements for additional authentication providers.
repeated .google.api.AuthRequirement requirements = 7;
| Name | Description |
| index | int |
| Type | Description |
| AuthRequirementOrBuilder |
getRequirementsOrBuilderList()
public List<? extends AuthRequirementOrBuilder> getRequirementsOrBuilderList()Requirements for additional authentication providers.
repeated .google.api.AuthRequirement requirements = 7;
| Type | Description |
| List<? extends com.google.api.AuthRequirementOrBuilder> |
getSelector()
public String getSelector()Selects the methods to which this rule applies. Refer to selector for syntax details.
string selector = 1;
| Type | Description |
| String | The selector. |
getSelectorBytes()
public ByteString getSelectorBytes()Selects the methods to which this rule applies. Refer to selector for syntax details.
string selector = 1;
| Type | Description |
| ByteString | The bytes for selector. |
hasOauth()
public boolean hasOauth()The requirements for OAuth credentials.
.google.api.OAuthRequirements oauth = 2;
| Type | Description |
| boolean | Whether the oauth field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Type | Description |
| FieldAccessorTable |
isInitialized()
public final boolean isInitialized()| Type | Description |
| boolean |
mergeFrom(AuthenticationRule other)
public AuthenticationRule.Builder mergeFrom(AuthenticationRule other)| Name | Description |
| other | AuthenticationRule |
| Type | Description |
| AuthenticationRule.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AuthenticationRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Name | Description |
| input | CodedInputStream |
| extensionRegistry | ExtensionRegistryLite |
| Type | Description |
| AuthenticationRule.Builder |
| Type | Description |
| IOException |
mergeFrom(Message other)
public AuthenticationRule.Builder mergeFrom(Message other)| Name | Description |
| other | Message |
| Type | Description |
| AuthenticationRule.Builder |
mergeOauth(OAuthRequirements value)
public AuthenticationRule.Builder mergeOauth(OAuthRequirements value)The requirements for OAuth credentials.
.google.api.OAuthRequirements oauth = 2;
| Name | Description |
| value | OAuthRequirements |
| Type | Description |
| AuthenticationRule.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AuthenticationRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| AuthenticationRule.Builder |
removeRequirements(int index)
public AuthenticationRule.Builder removeRequirements(int index)Requirements for additional authentication providers.
repeated .google.api.AuthRequirement requirements = 7;
| Name | Description |
| index | int |
| Type | Description |
| AuthenticationRule.Builder |
setAllowWithoutCredential(boolean value)
public AuthenticationRule.Builder setAllowWithoutCredential(boolean value)If true, the service accepts API keys without any other credential. This flag only applies to HTTP and gRPC requests.
bool allow_without_credential = 5;
| Name | Description |
| value | booleanThe allowWithoutCredential to set. |
| Type | Description |
| AuthenticationRule.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public AuthenticationRule.Builder setField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| AuthenticationRule.Builder |
setOauth(OAuthRequirements value)
public AuthenticationRule.Builder setOauth(OAuthRequirements value)The requirements for OAuth credentials.
.google.api.OAuthRequirements oauth = 2;
| Name | Description |
| value | OAuthRequirements |
| Type | Description |
| AuthenticationRule.Builder |
setOauth(OAuthRequirements.Builder builderForValue)
public AuthenticationRule.Builder setOauth(OAuthRequirements.Builder builderForValue)The requirements for OAuth credentials.
.google.api.OAuthRequirements oauth = 2;
| Name | Description |
| builderForValue | OAuthRequirements.Builder |
| Type | Description |
| AuthenticationRule.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AuthenticationRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Name | Description |
| field | FieldDescriptor |
| index | int |
| value | Object |
| Type | Description |
| AuthenticationRule.Builder |
setRequirements(int index, AuthRequirement value)
public AuthenticationRule.Builder setRequirements(int index, AuthRequirement value)Requirements for additional authentication providers.
repeated .google.api.AuthRequirement requirements = 7;
| Name | Description |
| index | int |
| value | AuthRequirement |
| Type | Description |
| AuthenticationRule.Builder |
setRequirements(int index, AuthRequirement.Builder builderForValue)
public AuthenticationRule.Builder setRequirements(int index, AuthRequirement.Builder builderForValue)Requirements for additional authentication providers.
repeated .google.api.AuthRequirement requirements = 7;
| Name | Description |
| index | int |
| builderForValue | AuthRequirement.Builder |
| Type | Description |
| AuthenticationRule.Builder |
setSelector(String value)
public AuthenticationRule.Builder setSelector(String value)Selects the methods to which this rule applies. Refer to selector for syntax details.
string selector = 1;
| Name | Description |
| value | StringThe selector to set. |
| Type | Description |
| AuthenticationRule.Builder | This builder for chaining. |
setSelectorBytes(ByteString value)
public AuthenticationRule.Builder setSelectorBytes(ByteString value)Selects the methods to which this rule applies. Refer to selector for syntax details.
string selector = 1;
| Name | Description |
| value | ByteStringThe bytes for selector to set. |
| Type | Description |
| AuthenticationRule.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final AuthenticationRule.Builder setUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| AuthenticationRule.Builder |