Package com.google.api
Class MethodPolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MethodPolicy.Builder>
com.google.api.MethodPolicy.Builder
- All Implemented Interfaces:
MethodPolicyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- MethodPolicy
public static final class MethodPolicy.Builder
extends com.google.protobuf.GeneratedMessage.Builder<MethodPolicy.Builder>
implements MethodPolicyOrBuilder
Defines policies applying to an RPC method.Protobuf type
google.api.MethodPolicy-
Method Summary
Modifier and TypeMethodDescriptionaddAllRequestPolicies(Iterable<? extends FieldPolicy> values) Policies that are applicable to the request message.addRequestPolicies(int index, FieldPolicy value) Policies that are applicable to the request message.addRequestPolicies(int index, FieldPolicy.Builder builderForValue) Policies that are applicable to the request message.addRequestPolicies(FieldPolicy value) Policies that are applicable to the request message.addRequestPolicies(FieldPolicy.Builder builderForValue) Policies that are applicable to the request message.Policies that are applicable to the request message.addRequestPoliciesBuilder(int index) Policies that are applicable to the request message.build()clear()Policies that are applicable to the request message.Selects a method to which these policies should be enforced, for example, "google.pubsub.v1.Subscriber.CreateSubscription".static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetRequestPolicies(int index) Policies that are applicable to the request message.getRequestPoliciesBuilder(int index) Policies that are applicable to the request message.Policies that are applicable to the request message.intPolicies that are applicable to the request message.Policies that are applicable to the request message.getRequestPoliciesOrBuilder(int index) Policies that are applicable to the request message.List<? extends FieldPolicyOrBuilder>Policies that are applicable to the request message.Selects a method to which these policies should be enforced, for example, "google.pubsub.v1.Subscriber.CreateSubscription".com.google.protobuf.ByteStringSelects a method to which these policies should be enforced, for example, "google.pubsub.v1.Subscriber.CreateSubscription".protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(MethodPolicy other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeRequestPolicies(int index) Policies that are applicable to the request message.setRequestPolicies(int index, FieldPolicy value) Policies that are applicable to the request message.setRequestPolicies(int index, FieldPolicy.Builder builderForValue) Policies that are applicable to the request message.setSelector(String value) Selects a method to which these policies should be enforced, for example, "google.pubsub.v1.Subscriber.CreateSubscription".setSelectorBytes(com.google.protobuf.ByteString value) Selects a method to which these policies should be enforced, for example, "google.pubsub.v1.Subscriber.CreateSubscription".Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<MethodPolicy.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<MethodPolicy.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.GeneratedMessage.Builder<MethodPolicy.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MethodPolicy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<MethodPolicy.Builder>
-
mergeFrom
public MethodPolicy.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<MethodPolicy.Builder>- Throws:
IOException
-
getSelector
Selects a method to which these policies should be enforced, for example, "google.pubsub.v1.Subscriber.CreateSubscription". Refer to [selector][google.api.DocumentationRule.selector] for syntax details. NOTE: This field must not be set in the proto annotation. It will be automatically filled by the service config compiler .
string selector = 9;- Specified by:
getSelectorin interfaceMethodPolicyOrBuilder- Returns:
- The selector.
-
getSelectorBytes
public com.google.protobuf.ByteString getSelectorBytes()Selects a method to which these policies should be enforced, for example, "google.pubsub.v1.Subscriber.CreateSubscription". Refer to [selector][google.api.DocumentationRule.selector] for syntax details. NOTE: This field must not be set in the proto annotation. It will be automatically filled by the service config compiler .
string selector = 9;- Specified by:
getSelectorBytesin interfaceMethodPolicyOrBuilder- Returns:
- The bytes for selector.
-
setSelector
Selects a method to which these policies should be enforced, for example, "google.pubsub.v1.Subscriber.CreateSubscription". Refer to [selector][google.api.DocumentationRule.selector] for syntax details. NOTE: This field must not be set in the proto annotation. It will be automatically filled by the service config compiler .
string selector = 9;- Parameters:
value- The selector to set.- Returns:
- This builder for chaining.
-
clearSelector
Selects a method to which these policies should be enforced, for example, "google.pubsub.v1.Subscriber.CreateSubscription". Refer to [selector][google.api.DocumentationRule.selector] for syntax details. NOTE: This field must not be set in the proto annotation. It will be automatically filled by the service config compiler .
string selector = 9;- Returns:
- This builder for chaining.
-
setSelectorBytes
Selects a method to which these policies should be enforced, for example, "google.pubsub.v1.Subscriber.CreateSubscription". Refer to [selector][google.api.DocumentationRule.selector] for syntax details. NOTE: This field must not be set in the proto annotation. It will be automatically filled by the service config compiler .
string selector = 9;- Parameters:
value- The bytes for selector to set.- Returns:
- This builder for chaining.
-
getRequestPoliciesList
Policies that are applicable to the request message.
repeated .google.api.FieldPolicy request_policies = 2;- Specified by:
getRequestPoliciesListin interfaceMethodPolicyOrBuilder
-
getRequestPoliciesCount
public int getRequestPoliciesCount()Policies that are applicable to the request message.
repeated .google.api.FieldPolicy request_policies = 2;- Specified by:
getRequestPoliciesCountin interfaceMethodPolicyOrBuilder
-
getRequestPolicies
Policies that are applicable to the request message.
repeated .google.api.FieldPolicy request_policies = 2;- Specified by:
getRequestPoliciesin interfaceMethodPolicyOrBuilder
-
setRequestPolicies
Policies that are applicable to the request message.
repeated .google.api.FieldPolicy request_policies = 2; -
setRequestPolicies
Policies that are applicable to the request message.
repeated .google.api.FieldPolicy request_policies = 2; -
addRequestPolicies
Policies that are applicable to the request message.
repeated .google.api.FieldPolicy request_policies = 2; -
addRequestPolicies
Policies that are applicable to the request message.
repeated .google.api.FieldPolicy request_policies = 2; -
addRequestPolicies
Policies that are applicable to the request message.
repeated .google.api.FieldPolicy request_policies = 2; -
addRequestPolicies
Policies that are applicable to the request message.
repeated .google.api.FieldPolicy request_policies = 2; -
addAllRequestPolicies
Policies that are applicable to the request message.
repeated .google.api.FieldPolicy request_policies = 2; -
clearRequestPolicies
Policies that are applicable to the request message.
repeated .google.api.FieldPolicy request_policies = 2; -
removeRequestPolicies
Policies that are applicable to the request message.
repeated .google.api.FieldPolicy request_policies = 2; -
getRequestPoliciesBuilder
Policies that are applicable to the request message.
repeated .google.api.FieldPolicy request_policies = 2; -
getRequestPoliciesOrBuilder
Policies that are applicable to the request message.
repeated .google.api.FieldPolicy request_policies = 2;- Specified by:
getRequestPoliciesOrBuilderin interfaceMethodPolicyOrBuilder
-
getRequestPoliciesOrBuilderList
Policies that are applicable to the request message.
repeated .google.api.FieldPolicy request_policies = 2;- Specified by:
getRequestPoliciesOrBuilderListin interfaceMethodPolicyOrBuilder
-
addRequestPoliciesBuilder
Policies that are applicable to the request message.
repeated .google.api.FieldPolicy request_policies = 2; -
addRequestPoliciesBuilder
Policies that are applicable to the request message.
repeated .google.api.FieldPolicy request_policies = 2; -
getRequestPoliciesBuilderList
Policies that are applicable to the request message.
repeated .google.api.FieldPolicy request_policies = 2;
-