All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule Maven / Gradle / Ivy

There is a newer version: 1.1.6
Show newest version
// Generated by the protocol buffer nl.topicus.jdbc.shaded.com.iler.  DO NOT EDIT!
// source: google/api/auth.proto

package nl.topicus.jdbc.shaded.com.google.api;

/**
 * 
 * Authentication 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 {@code google.api.AuthenticationRule} */ public final class AuthenticationRule extends nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.api.AuthenticationRule) AuthenticationRuleOrBuilder { // Use AuthenticationRule.newBuilder() to construct. private AuthenticationRule(nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AuthenticationRule() { selector_ = ""; allowWithoutCredential_ = false; requirements_ = java.util.Collections.emptyList(); } @java.lang.Override public final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet getUnknownFields() { return nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private AuthenticationRule( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); selector_ = s; break; } case 18: { nl.topicus.jdbc.shaded.com.google.api.OAuthRequirements.Builder subBuilder = null; if (oauth_ != null) { subBuilder = oauth_.toBuilder(); } oauth_ = input.readMessage(nl.topicus.jdbc.shaded.com.google.api.OAuthRequirements.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(oauth_); oauth_ = subBuilder.buildPartial(); } break; } case 40: { allowWithoutCredential_ = input.readBool(); break; } case 58: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { requirements_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } requirements_.add( input.readMessage(nl.topicus.jdbc.shaded.com.google.api.AuthRequirement.parser(), extensionRegistry)); break; } } } } catch (nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.nl.topicus.jdbc.shaded.io.IOException e) { throw new nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { requirements_ = java.util.Collections.unmodifiableList(requirements_); } makeExtensionsImmutable(); } } public static final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return nl.topicus.jdbc.shaded.com.google.api.AuthProto.internal_static_google_api_AuthenticationRule_descriptor; } protected nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return nl.topicus.jdbc.shaded.com.google.api.AuthProto.internal_static_google_api_AuthenticationRule_fieldAccessorTable .ensureFieldAccessorsInitialized( nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule.class, nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule.Builder.class); } private int bitField0_; public static final int SELECTOR_FIELD_NUMBER = 1; private volatile java.lang.Object selector_; /** *
   * Selects the methods to which this rule applies.
   * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
   * 
* * string selector = 1; */ public java.lang.String getSelector() { java.lang.Object ref = selector_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs = (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); selector_ = s; return s; } } /** *
   * Selects the methods to which this rule applies.
   * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
   * 
* * string selector = 1; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getSelectorBytes() { java.lang.Object ref = selector_; if (ref instanceof java.lang.String) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); selector_ = b; return b; } else { return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; } } public static final int OAUTH_FIELD_NUMBER = 2; private nl.topicus.jdbc.shaded.com.google.api.OAuthRequirements oauth_; /** *
   * The requirements for OAuth credentials.
   * 
* * .google.api.OAuthRequirements oauth = 2; */ public boolean hasOauth() { return oauth_ != null; } /** *
   * The requirements for OAuth credentials.
   * 
* * .google.api.OAuthRequirements oauth = 2; */ public nl.topicus.jdbc.shaded.com.google.api.OAuthRequirements getOauth() { return oauth_ == null ? nl.topicus.jdbc.shaded.com.google.api.OAuthRequirements.getDefaultInstance() : oauth_; } /** *
   * The requirements for OAuth credentials.
   * 
* * .google.api.OAuthRequirements oauth = 2; */ public nl.topicus.jdbc.shaded.com.google.api.OAuthRequirementsOrBuilder getOauthOrBuilder() { return getOauth(); } public static final int ALLOW_WITHOUT_CREDENTIAL_FIELD_NUMBER = 5; private boolean allowWithoutCredential_; /** *
   * Whether to allow requests without a credential. The credential can be
   * an OAuth token, Google cookies (first-party auth) or EndUserCreds.
   * For requests without credentials, if the service control environment is
   * specified, each incoming request **must** be associated with a service
   * consumer. This can be done by passing an API key that belongs to a consumer
   * project.
   * 
* * bool allow_without_credential = 5; */ public boolean getAllowWithoutCredential() { return allowWithoutCredential_; } public static final int REQUIREMENTS_FIELD_NUMBER = 7; private java.util.List requirements_; /** *
   * Requirements for additional authentication providers.
   * 
* * repeated .google.api.AuthRequirement requirements = 7; */ public java.util.List getRequirementsList() { return requirements_; } /** *
   * Requirements for additional authentication providers.
   * 
* * repeated .google.api.AuthRequirement requirements = 7; */ public java.util.List getRequirementsOrBuilderList() { return requirements_; } /** *
   * Requirements for additional authentication providers.
   * 
* * repeated .google.api.AuthRequirement requirements = 7; */ public int getRequirementsCount() { return requirements_.size(); } /** *
   * Requirements for additional authentication providers.
   * 
* * repeated .google.api.AuthRequirement requirements = 7; */ public nl.topicus.jdbc.shaded.com.google.api.AuthRequirement getRequirements(int index) { return requirements_.get(index); } /** *
   * Requirements for additional authentication providers.
   * 
* * repeated .google.api.AuthRequirement requirements = 7; */ public nl.topicus.jdbc.shaded.com.google.api.AuthRequirementOrBuilder getRequirementsOrBuilder( int index) { return requirements_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream output) throws java.nl.topicus.jdbc.shaded.io.IOException { if (!getSelectorBytes().isEmpty()) { nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selector_); } if (oauth_ != null) { output.writeMessage(2, getOauth()); } if (allowWithoutCredential_ != false) { output.writeBool(5, allowWithoutCredential_); } for (int i = 0; i < requirements_.size(); i++) { output.writeMessage(7, requirements_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getSelectorBytes().isEmpty()) { size += nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.nl.topicus.jdbc.shaded.com.uteStringSize(1, selector_); } if (oauth_ != null) { size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream .nl.topicus.jdbc.shaded.com.uteMessageSize(2, getOauth()); } if (allowWithoutCredential_ != false) { size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream .nl.topicus.jdbc.shaded.com.uteBoolSize(5, allowWithoutCredential_); } for (int i = 0; i < requirements_.size(); i++) { size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream .nl.topicus.jdbc.shaded.com.uteMessageSize(7, requirements_.get(i)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule)) { return super.equals(obj); } nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule other = (nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule) obj; boolean result = true; result = result && getSelector() .equals(other.getSelector()); result = result && (hasOauth() == other.hasOauth()); if (hasOauth()) { result = result && getOauth() .equals(other.getOauth()); } result = result && (getAllowWithoutCredential() == other.getAllowWithoutCredential()); result = result && getRequirementsList() .equals(other.getRequirementsList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SELECTOR_FIELD_NUMBER; hash = (53 * hash) + getSelector().hashCode(); if (hasOauth()) { hash = (37 * hash) + OAUTH_FIELD_NUMBER; hash = (53 * hash) + getOauth().hashCode(); } hash = (37 * hash) + ALLOW_WITHOUT_CREDENTIAL_FIELD_NUMBER; hash = (53 * hash) + nl.topicus.jdbc.shaded.com.google.protobuf.Internal.hashBoolean( getAllowWithoutCredential()); if (getRequirementsCount() > 0) { hash = (37 * hash) + REQUIREMENTS_FIELD_NUMBER; hash = (53 * hash) + getRequirementsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule parseFrom( java.nio.ByteBuffer data) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule parseFrom( java.nio.ByteBuffer data, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule parseFrom( nl.topicus.jdbc.shaded.com.google.protobuf.ByteString data) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule parseFrom( nl.topicus.jdbc.shaded.com.google.protobuf.ByteString data, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule parseFrom(byte[] data) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule parseFrom( byte[] data, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule parseFrom(java.nl.topicus.jdbc.shaded.io.InputStream input) throws java.nl.topicus.jdbc.shaded.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule parseFrom( java.nl.topicus.jdbc.shaded.io.InputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.nl.topicus.jdbc.shaded.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule parseDelimitedFrom(java.nl.topicus.jdbc.shaded.io.InputStream input) throws java.nl.topicus.jdbc.shaded.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule parseDelimitedFrom( java.nl.topicus.jdbc.shaded.io.InputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.nl.topicus.jdbc.shaded.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule parseFrom( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input) throws java.nl.topicus.jdbc.shaded.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule parseFrom( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.nl.topicus.jdbc.shaded.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Authentication 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 {@code google.api.AuthenticationRule} */ public static final class Builder extends nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.api.AuthenticationRule) nl.topicus.jdbc.shaded.com.google.api.AuthenticationRuleOrBuilder { public static final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return nl.topicus.jdbc.shaded.com.google.api.AuthProto.internal_static_google_api_AuthenticationRule_descriptor; } protected nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return nl.topicus.jdbc.shaded.com.google.api.AuthProto.internal_static_google_api_AuthenticationRule_fieldAccessorTable .ensureFieldAccessorsInitialized( nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule.class, nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule.Builder.class); } // Construct using nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRequirementsFieldBuilder(); } } public Builder clear() { super.clear(); selector_ = ""; if (oauthBuilder_ == null) { oauth_ = null; } else { oauth_ = null; oauthBuilder_ = null; } allowWithoutCredential_ = false; if (requirementsBuilder_ == null) { requirements_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { requirementsBuilder_.clear(); } return this; } public nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return nl.topicus.jdbc.shaded.com.google.api.AuthProto.internal_static_google_api_AuthenticationRule_descriptor; } public nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule getDefaultInstanceForType() { return nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule.getDefaultInstance(); } public nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule build() { nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule buildPartial() { nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule result = new nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.selector_ = selector_; if (oauthBuilder_ == null) { result.oauth_ = oauth_; } else { result.oauth_ = oauthBuilder_.build(); } result.allowWithoutCredential_ = allowWithoutCredential_; if (requirementsBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { requirements_ = java.util.Collections.unmodifiableList(requirements_); bitField0_ = (bitField0_ & ~0x00000008); } result.requirements_ = requirements_; } else { result.requirements_ = requirementsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(nl.topicus.jdbc.shaded.com.google.protobuf.Message other) { if (other instanceof nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule) { return mergeFrom((nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule other) { if (other == nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule.getDefaultInstance()) return this; if (!other.getSelector().isEmpty()) { selector_ = other.selector_; onChanged(); } if (other.hasOauth()) { mergeOauth(other.getOauth()); } if (other.getAllowWithoutCredential() != false) { setAllowWithoutCredential(other.getAllowWithoutCredential()); } if (requirementsBuilder_ == null) { if (!other.requirements_.isEmpty()) { if (requirements_.isEmpty()) { requirements_ = other.requirements_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureRequirementsIsMutable(); requirements_.addAll(other.requirements_); } onChanged(); } } else { if (!other.requirements_.isEmpty()) { if (requirementsBuilder_.isEmpty()) { requirementsBuilder_.dispose(); requirementsBuilder_ = null; requirements_ = other.requirements_; bitField0_ = (bitField0_ & ~0x00000008); requirementsBuilder_ = nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRequirementsFieldBuilder() : null; } else { requirementsBuilder_.addAllMessages(other.requirements_); } } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.nl.topicus.jdbc.shaded.io.IOException { nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object selector_ = ""; /** *
     * Selects the methods to which this rule applies.
     * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
     * 
* * string selector = 1; */ public java.lang.String getSelector() { java.lang.Object ref = selector_; if (!(ref instanceof java.lang.String)) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs = (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); selector_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Selects the methods to which this rule applies.
     * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
     * 
* * string selector = 1; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getSelectorBytes() { java.lang.Object ref = selector_; if (ref instanceof String) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); selector_ = b; return b; } else { return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; } } /** *
     * Selects the methods to which this rule applies.
     * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
     * 
* * string selector = 1; */ public Builder setSelector( java.lang.String value) { if (value == null) { throw new NullPointerException(); } selector_ = value; onChanged(); return this; } /** *
     * Selects the methods to which this rule applies.
     * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
     * 
* * string selector = 1; */ public Builder clearSelector() { selector_ = getDefaultInstance().getSelector(); onChanged(); return this; } /** *
     * Selects the methods to which this rule applies.
     * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
     * 
* * string selector = 1; */ public Builder setSelectorBytes( nl.topicus.jdbc.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); selector_ = value; onChanged(); return this; } private nl.topicus.jdbc.shaded.com.google.api.OAuthRequirements oauth_ = null; private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.api.OAuthRequirements, nl.topicus.jdbc.shaded.com.google.api.OAuthRequirements.Builder, nl.topicus.jdbc.shaded.com.google.api.OAuthRequirementsOrBuilder> oauthBuilder_; /** *
     * The requirements for OAuth credentials.
     * 
* * .google.api.OAuthRequirements oauth = 2; */ public boolean hasOauth() { return oauthBuilder_ != null || oauth_ != null; } /** *
     * The requirements for OAuth credentials.
     * 
* * .google.api.OAuthRequirements oauth = 2; */ public nl.topicus.jdbc.shaded.com.google.api.OAuthRequirements getOauth() { if (oauthBuilder_ == null) { return oauth_ == null ? nl.topicus.jdbc.shaded.com.google.api.OAuthRequirements.getDefaultInstance() : oauth_; } else { return oauthBuilder_.getMessage(); } } /** *
     * The requirements for OAuth credentials.
     * 
* * .google.api.OAuthRequirements oauth = 2; */ public Builder setOauth(nl.topicus.jdbc.shaded.com.google.api.OAuthRequirements value) { if (oauthBuilder_ == null) { if (value == null) { throw new NullPointerException(); } oauth_ = value; onChanged(); } else { oauthBuilder_.setMessage(value); } return this; } /** *
     * The requirements for OAuth credentials.
     * 
* * .google.api.OAuthRequirements oauth = 2; */ public Builder setOauth( nl.topicus.jdbc.shaded.com.google.api.OAuthRequirements.Builder builderForValue) { if (oauthBuilder_ == null) { oauth_ = builderForValue.build(); onChanged(); } else { oauthBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The requirements for OAuth credentials.
     * 
* * .google.api.OAuthRequirements oauth = 2; */ public Builder mergeOauth(nl.topicus.jdbc.shaded.com.google.api.OAuthRequirements value) { if (oauthBuilder_ == null) { if (oauth_ != null) { oauth_ = nl.topicus.jdbc.shaded.com.google.api.OAuthRequirements.newBuilder(oauth_).mergeFrom(value).buildPartial(); } else { oauth_ = value; } onChanged(); } else { oauthBuilder_.mergeFrom(value); } return this; } /** *
     * The requirements for OAuth credentials.
     * 
* * .google.api.OAuthRequirements oauth = 2; */ public Builder clearOauth() { if (oauthBuilder_ == null) { oauth_ = null; onChanged(); } else { oauth_ = null; oauthBuilder_ = null; } return this; } /** *
     * The requirements for OAuth credentials.
     * 
* * .google.api.OAuthRequirements oauth = 2; */ public nl.topicus.jdbc.shaded.com.google.api.OAuthRequirements.Builder getOauthBuilder() { onChanged(); return getOauthFieldBuilder().getBuilder(); } /** *
     * The requirements for OAuth credentials.
     * 
* * .google.api.OAuthRequirements oauth = 2; */ public nl.topicus.jdbc.shaded.com.google.api.OAuthRequirementsOrBuilder getOauthOrBuilder() { if (oauthBuilder_ != null) { return oauthBuilder_.getMessageOrBuilder(); } else { return oauth_ == null ? nl.topicus.jdbc.shaded.com.google.api.OAuthRequirements.getDefaultInstance() : oauth_; } } /** *
     * The requirements for OAuth credentials.
     * 
* * .google.api.OAuthRequirements oauth = 2; */ private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.api.OAuthRequirements, nl.topicus.jdbc.shaded.com.google.api.OAuthRequirements.Builder, nl.topicus.jdbc.shaded.com.google.api.OAuthRequirementsOrBuilder> getOauthFieldBuilder() { if (oauthBuilder_ == null) { oauthBuilder_ = new nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.api.OAuthRequirements, nl.topicus.jdbc.shaded.com.google.api.OAuthRequirements.Builder, nl.topicus.jdbc.shaded.com.google.api.OAuthRequirementsOrBuilder>( getOauth(), getParentForChildren(), isClean()); oauth_ = null; } return oauthBuilder_; } private boolean allowWithoutCredential_ ; /** *
     * Whether to allow requests without a credential. The credential can be
     * an OAuth token, Google cookies (first-party auth) or EndUserCreds.
     * For requests without credentials, if the service control environment is
     * specified, each incoming request **must** be associated with a service
     * consumer. This can be done by passing an API key that belongs to a consumer
     * project.
     * 
* * bool allow_without_credential = 5; */ public boolean getAllowWithoutCredential() { return allowWithoutCredential_; } /** *
     * Whether to allow requests without a credential. The credential can be
     * an OAuth token, Google cookies (first-party auth) or EndUserCreds.
     * For requests without credentials, if the service control environment is
     * specified, each incoming request **must** be associated with a service
     * consumer. This can be done by passing an API key that belongs to a consumer
     * project.
     * 
* * bool allow_without_credential = 5; */ public Builder setAllowWithoutCredential(boolean value) { allowWithoutCredential_ = value; onChanged(); return this; } /** *
     * Whether to allow requests without a credential. The credential can be
     * an OAuth token, Google cookies (first-party auth) or EndUserCreds.
     * For requests without credentials, if the service control environment is
     * specified, each incoming request **must** be associated with a service
     * consumer. This can be done by passing an API key that belongs to a consumer
     * project.
     * 
* * bool allow_without_credential = 5; */ public Builder clearAllowWithoutCredential() { allowWithoutCredential_ = false; onChanged(); return this; } private java.util.List requirements_ = java.util.Collections.emptyList(); private void ensureRequirementsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { requirements_ = new java.util.ArrayList(requirements_); bitField0_ |= 0x00000008; } } private nl.topicus.jdbc.shaded.com.google.protobuf.RepeatedFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.api.AuthRequirement, nl.topicus.jdbc.shaded.com.google.api.AuthRequirement.Builder, nl.topicus.jdbc.shaded.com.google.api.AuthRequirementOrBuilder> requirementsBuilder_; /** *
     * Requirements for additional authentication providers.
     * 
* * repeated .google.api.AuthRequirement requirements = 7; */ public java.util.List getRequirementsList() { if (requirementsBuilder_ == null) { return java.util.Collections.unmodifiableList(requirements_); } else { return requirementsBuilder_.getMessageList(); } } /** *
     * Requirements for additional authentication providers.
     * 
* * repeated .google.api.AuthRequirement requirements = 7; */ public int getRequirementsCount() { if (requirementsBuilder_ == null) { return requirements_.size(); } else { return requirementsBuilder_.getCount(); } } /** *
     * Requirements for additional authentication providers.
     * 
* * repeated .google.api.AuthRequirement requirements = 7; */ public nl.topicus.jdbc.shaded.com.google.api.AuthRequirement getRequirements(int index) { if (requirementsBuilder_ == null) { return requirements_.get(index); } else { return requirementsBuilder_.getMessage(index); } } /** *
     * Requirements for additional authentication providers.
     * 
* * repeated .google.api.AuthRequirement requirements = 7; */ public Builder setRequirements( int index, nl.topicus.jdbc.shaded.com.google.api.AuthRequirement value) { if (requirementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequirementsIsMutable(); requirements_.set(index, value); onChanged(); } else { requirementsBuilder_.setMessage(index, value); } return this; } /** *
     * Requirements for additional authentication providers.
     * 
* * repeated .google.api.AuthRequirement requirements = 7; */ public Builder setRequirements( int index, nl.topicus.jdbc.shaded.com.google.api.AuthRequirement.Builder builderForValue) { if (requirementsBuilder_ == null) { ensureRequirementsIsMutable(); requirements_.set(index, builderForValue.build()); onChanged(); } else { requirementsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Requirements for additional authentication providers.
     * 
* * repeated .google.api.AuthRequirement requirements = 7; */ public Builder addRequirements(nl.topicus.jdbc.shaded.com.google.api.AuthRequirement value) { if (requirementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequirementsIsMutable(); requirements_.add(value); onChanged(); } else { requirementsBuilder_.addMessage(value); } return this; } /** *
     * Requirements for additional authentication providers.
     * 
* * repeated .google.api.AuthRequirement requirements = 7; */ public Builder addRequirements( int index, nl.topicus.jdbc.shaded.com.google.api.AuthRequirement value) { if (requirementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequirementsIsMutable(); requirements_.add(index, value); onChanged(); } else { requirementsBuilder_.addMessage(index, value); } return this; } /** *
     * Requirements for additional authentication providers.
     * 
* * repeated .google.api.AuthRequirement requirements = 7; */ public Builder addRequirements( nl.topicus.jdbc.shaded.com.google.api.AuthRequirement.Builder builderForValue) { if (requirementsBuilder_ == null) { ensureRequirementsIsMutable(); requirements_.add(builderForValue.build()); onChanged(); } else { requirementsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Requirements for additional authentication providers.
     * 
* * repeated .google.api.AuthRequirement requirements = 7; */ public Builder addRequirements( int index, nl.topicus.jdbc.shaded.com.google.api.AuthRequirement.Builder builderForValue) { if (requirementsBuilder_ == null) { ensureRequirementsIsMutable(); requirements_.add(index, builderForValue.build()); onChanged(); } else { requirementsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Requirements for additional authentication providers.
     * 
* * repeated .google.api.AuthRequirement requirements = 7; */ public Builder addAllRequirements( java.lang.Iterable values) { if (requirementsBuilder_ == null) { ensureRequirementsIsMutable(); nl.topicus.jdbc.shaded.com.google.protobuf.AbstractMessageLite.Builder.addAll( values, requirements_); onChanged(); } else { requirementsBuilder_.addAllMessages(values); } return this; } /** *
     * Requirements for additional authentication providers.
     * 
* * repeated .google.api.AuthRequirement requirements = 7; */ public Builder clearRequirements() { if (requirementsBuilder_ == null) { requirements_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { requirementsBuilder_.clear(); } return this; } /** *
     * Requirements for additional authentication providers.
     * 
* * repeated .google.api.AuthRequirement requirements = 7; */ public Builder removeRequirements(int index) { if (requirementsBuilder_ == null) { ensureRequirementsIsMutable(); requirements_.remove(index); onChanged(); } else { requirementsBuilder_.remove(index); } return this; } /** *
     * Requirements for additional authentication providers.
     * 
* * repeated .google.api.AuthRequirement requirements = 7; */ public nl.topicus.jdbc.shaded.com.google.api.AuthRequirement.Builder getRequirementsBuilder( int index) { return getRequirementsFieldBuilder().getBuilder(index); } /** *
     * Requirements for additional authentication providers.
     * 
* * repeated .google.api.AuthRequirement requirements = 7; */ public nl.topicus.jdbc.shaded.com.google.api.AuthRequirementOrBuilder getRequirementsOrBuilder( int index) { if (requirementsBuilder_ == null) { return requirements_.get(index); } else { return requirementsBuilder_.getMessageOrBuilder(index); } } /** *
     * Requirements for additional authentication providers.
     * 
* * repeated .google.api.AuthRequirement requirements = 7; */ public java.util.List getRequirementsOrBuilderList() { if (requirementsBuilder_ != null) { return requirementsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(requirements_); } } /** *
     * Requirements for additional authentication providers.
     * 
* * repeated .google.api.AuthRequirement requirements = 7; */ public nl.topicus.jdbc.shaded.com.google.api.AuthRequirement.Builder addRequirementsBuilder() { return getRequirementsFieldBuilder().addBuilder( nl.topicus.jdbc.shaded.com.google.api.AuthRequirement.getDefaultInstance()); } /** *
     * Requirements for additional authentication providers.
     * 
* * repeated .google.api.AuthRequirement requirements = 7; */ public nl.topicus.jdbc.shaded.com.google.api.AuthRequirement.Builder addRequirementsBuilder( int index) { return getRequirementsFieldBuilder().addBuilder( index, nl.topicus.jdbc.shaded.com.google.api.AuthRequirement.getDefaultInstance()); } /** *
     * Requirements for additional authentication providers.
     * 
* * repeated .google.api.AuthRequirement requirements = 7; */ public java.util.List getRequirementsBuilderList() { return getRequirementsFieldBuilder().getBuilderList(); } private nl.topicus.jdbc.shaded.com.google.protobuf.RepeatedFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.api.AuthRequirement, nl.topicus.jdbc.shaded.com.google.api.AuthRequirement.Builder, nl.topicus.jdbc.shaded.com.google.api.AuthRequirementOrBuilder> getRequirementsFieldBuilder() { if (requirementsBuilder_ == null) { requirementsBuilder_ = new nl.topicus.jdbc.shaded.com.google.protobuf.RepeatedFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.api.AuthRequirement, nl.topicus.jdbc.shaded.com.google.api.AuthRequirement.Builder, nl.topicus.jdbc.shaded.com.google.api.AuthRequirementOrBuilder>( requirements_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); requirements_ = null; } return requirementsBuilder_; } public final Builder setUnknownFields( final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:google.api.AuthenticationRule) } // @@protoc_insertion_point(class_scope:google.api.AuthenticationRule) private static final nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule(); } public static nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final nl.topicus.jdbc.shaded.com.google.protobuf.Parser PARSER = new nl.topicus.jdbc.shaded.com.google.protobuf.AbstractParser() { public AuthenticationRule parsePartialFrom( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return new AuthenticationRule(input, extensionRegistry); } }; public static nl.topicus.jdbc.shaded.com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public nl.topicus.jdbc.shaded.com.google.protobuf.Parser getParserForType() { return PARSER; } public nl.topicus.jdbc.shaded.com.google.api.AuthenticationRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy