Package com.google.api.servicecontrol.v2
Class ResourceInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ResourceInfo.Builder>
com.google.api.servicecontrol.v2.ResourceInfo.Builder
- All Implemented Interfaces:
ResourceInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ResourceInfo
public static final class ResourceInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ResourceInfo.Builder>
implements ResourceInfoOrBuilder
Describes a resource referenced in the request.Protobuf type
google.api.servicecontrol.v2.ResourceInfo-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.The name of the resource referenced in the request.The resource permission needed for this request.The resource type in the format of "{service}/{kind}".Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.getName()The name of the resource referenced in the request.com.google.protobuf.ByteStringThe name of the resource referenced in the request.The resource permission needed for this request.com.google.protobuf.ByteStringThe resource permission needed for this request.getType()The resource type in the format of "{service}/{kind}".com.google.protobuf.ByteStringThe resource type in the format of "{service}/{kind}".protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ResourceInfo other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setContainer(String value) Optional.setContainerBytes(com.google.protobuf.ByteString value) Optional.setLocation(String value) Optional.setLocationBytes(com.google.protobuf.ByteString value) Optional.The name of the resource referenced in the request.setNameBytes(com.google.protobuf.ByteString value) The name of the resource referenced in the request.setPermission(String value) The resource permission needed for this request.setPermissionBytes(com.google.protobuf.ByteString value) The resource permission needed for this request.The resource type in the format of "{service}/{kind}".setTypeBytes(com.google.protobuf.ByteString value) The resource type in the format of "{service}/{kind}".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<ResourceInfo.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<ResourceInfo.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<ResourceInfo.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<ResourceInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ResourceInfo.Builder>
-
mergeFrom
public ResourceInfo.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<ResourceInfo.Builder>- Throws:
IOException
-
getName
The name of the resource referenced in the request.
string name = 1;- Specified by:
getNamein interfaceResourceInfoOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the resource referenced in the request.
string name = 1;- Specified by:
getNameBytesin interfaceResourceInfoOrBuilder- Returns:
- The bytes for name.
-
setName
The name of the resource referenced in the request.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name of the resource referenced in the request.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
The name of the resource referenced in the request.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getType
The resource type in the format of "{service}/{kind}".string type = 2;- Specified by:
getTypein interfaceResourceInfoOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()The resource type in the format of "{service}/{kind}".string type = 2;- Specified by:
getTypeBytesin interfaceResourceInfoOrBuilder- Returns:
- The bytes for type.
-
setType
The resource type in the format of "{service}/{kind}".string type = 2;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
The resource type in the format of "{service}/{kind}".string type = 2;- Returns:
- This builder for chaining.
-
setTypeBytes
The resource type in the format of "{service}/{kind}".string type = 2;- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-
getPermission
The resource permission needed for this request. The format must be "{service}/{plural}.{verb}".string permission = 3;- Specified by:
getPermissionin interfaceResourceInfoOrBuilder- Returns:
- The permission.
-
getPermissionBytes
public com.google.protobuf.ByteString getPermissionBytes()The resource permission needed for this request. The format must be "{service}/{plural}.{verb}".string permission = 3;- Specified by:
getPermissionBytesin interfaceResourceInfoOrBuilder- Returns:
- The bytes for permission.
-
setPermission
The resource permission needed for this request. The format must be "{service}/{plural}.{verb}".string permission = 3;- Parameters:
value- The permission to set.- Returns:
- This builder for chaining.
-
clearPermission
The resource permission needed for this request. The format must be "{service}/{plural}.{verb}".string permission = 3;- Returns:
- This builder for chaining.
-
setPermissionBytes
The resource permission needed for this request. The format must be "{service}/{plural}.{verb}".string permission = 3;- Parameters:
value- The bytes for permission to set.- Returns:
- This builder for chaining.
-
getContainer
Optional. The identifier of the container of this resource. For Google Cloud APIs, the resource container must be one of the following formats: - `projects/<project-id or project-number>` - `folders/<folder-number>` - `organizations/<organization-number>` Required for the policy enforcement on the container level (e.g. VPCSC, Location Policy check, Org Policy check).
string container = 4;- Specified by:
getContainerin interfaceResourceInfoOrBuilder- Returns:
- The container.
-
getContainerBytes
public com.google.protobuf.ByteString getContainerBytes()Optional. The identifier of the container of this resource. For Google Cloud APIs, the resource container must be one of the following formats: - `projects/<project-id or project-number>` - `folders/<folder-number>` - `organizations/<organization-number>` Required for the policy enforcement on the container level (e.g. VPCSC, Location Policy check, Org Policy check).
string container = 4;- Specified by:
getContainerBytesin interfaceResourceInfoOrBuilder- Returns:
- The bytes for container.
-
setContainer
Optional. The identifier of the container of this resource. For Google Cloud APIs, the resource container must be one of the following formats: - `projects/<project-id or project-number>` - `folders/<folder-number>` - `organizations/<organization-number>` Required for the policy enforcement on the container level (e.g. VPCSC, Location Policy check, Org Policy check).
string container = 4;- Parameters:
value- The container to set.- Returns:
- This builder for chaining.
-
clearContainer
Optional. The identifier of the container of this resource. For Google Cloud APIs, the resource container must be one of the following formats: - `projects/<project-id or project-number>` - `folders/<folder-number>` - `organizations/<organization-number>` Required for the policy enforcement on the container level (e.g. VPCSC, Location Policy check, Org Policy check).
string container = 4;- Returns:
- This builder for chaining.
-
setContainerBytes
Optional. The identifier of the container of this resource. For Google Cloud APIs, the resource container must be one of the following formats: - `projects/<project-id or project-number>` - `folders/<folder-number>` - `organizations/<organization-number>` Required for the policy enforcement on the container level (e.g. VPCSC, Location Policy check, Org Policy check).
string container = 4;- Parameters:
value- The bytes for container to set.- Returns:
- This builder for chaining.
-
getLocation
Optional. The location of the resource, it must be a valid zone, region or multiregion, for example: "europe-west4", "northamerica-northeast1-a". Required for location policy check.
string location = 5;- Specified by:
getLocationin interfaceResourceInfoOrBuilder- Returns:
- The location.
-
getLocationBytes
public com.google.protobuf.ByteString getLocationBytes()Optional. The location of the resource, it must be a valid zone, region or multiregion, for example: "europe-west4", "northamerica-northeast1-a". Required for location policy check.
string location = 5;- Specified by:
getLocationBytesin interfaceResourceInfoOrBuilder- Returns:
- The bytes for location.
-
setLocation
Optional. The location of the resource, it must be a valid zone, region or multiregion, for example: "europe-west4", "northamerica-northeast1-a". Required for location policy check.
string location = 5;- Parameters:
value- The location to set.- Returns:
- This builder for chaining.
-
clearLocation
Optional. The location of the resource, it must be a valid zone, region or multiregion, for example: "europe-west4", "northamerica-northeast1-a". Required for location policy check.
string location = 5;- Returns:
- This builder for chaining.
-
setLocationBytes
Optional. The location of the resource, it must be a valid zone, region or multiregion, for example: "europe-west4", "northamerica-northeast1-a". Required for location policy check.
string location = 5;- Parameters:
value- The bytes for location to set.- Returns:
- This builder for chaining.
-