public static final class ResourceInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder> implements ResourceInfoOrBuilder
Describes a resource referenced in the request.Protobuf type
google.api.servicecontrol.v2.ResourceInfo| Modifier and Type | Method and Description |
|---|---|
ResourceInfo.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ResourceInfo |
build() |
ResourceInfo |
buildPartial() |
ResourceInfo.Builder |
clear() |
ResourceInfo.Builder |
clearContainer()
Optional.
|
ResourceInfo.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ResourceInfo.Builder |
clearLocation()
Optional.
|
ResourceInfo.Builder |
clearName()
The name of the resource referenced in the request.
|
ResourceInfo.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ResourceInfo.Builder |
clearPermission()
The resource permission needed for this request.
|
ResourceInfo.Builder |
clearType()
The resource type in the format of "{service}/{kind}".
|
ResourceInfo.Builder |
clone() |
String |
getContainer()
Optional.
|
com.google.protobuf.ByteString |
getContainerBytes()
Optional.
|
ResourceInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getLocation()
Optional.
|
com.google.protobuf.ByteString |
getLocationBytes()
Optional.
|
String |
getName()
The name of the resource referenced in the request.
|
com.google.protobuf.ByteString |
getNameBytes()
The name of the resource referenced in the request.
|
String |
getPermission()
The resource permission needed for this request.
|
com.google.protobuf.ByteString |
getPermissionBytes()
The resource permission needed for this request.
|
String |
getType()
The resource type in the format of "{service}/{kind}".
|
com.google.protobuf.ByteString |
getTypeBytes()
The resource type in the format of "{service}/{kind}".
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ResourceInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ResourceInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
ResourceInfo.Builder |
mergeFrom(ResourceInfo other) |
ResourceInfo.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ResourceInfo.Builder |
setContainer(String value)
Optional.
|
ResourceInfo.Builder |
setContainerBytes(com.google.protobuf.ByteString value)
Optional.
|
ResourceInfo.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ResourceInfo.Builder |
setLocation(String value)
Optional.
|
ResourceInfo.Builder |
setLocationBytes(com.google.protobuf.ByteString value)
Optional.
|
ResourceInfo.Builder |
setName(String value)
The name of the resource referenced in the request.
|
ResourceInfo.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The name of the resource referenced in the request.
|
ResourceInfo.Builder |
setPermission(String value)
The resource permission needed for this request.
|
ResourceInfo.Builder |
setPermissionBytes(com.google.protobuf.ByteString value)
The resource permission needed for this request.
|
ResourceInfo.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ResourceInfo.Builder |
setType(String value)
The resource type in the format of "{service}/{kind}".
|
ResourceInfo.Builder |
setTypeBytes(com.google.protobuf.ByteString value)
The resource type in the format of "{service}/{kind}".
|
ResourceInfo.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>public ResourceInfo.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>public ResourceInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ResourceInfo build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ResourceInfo buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ResourceInfo.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>public ResourceInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>public ResourceInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>public ResourceInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>public ResourceInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>public ResourceInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>public ResourceInfo.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ResourceInfo.Builder>public ResourceInfo.Builder mergeFrom(ResourceInfo other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>public ResourceInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ResourceInfo.Builder>IOExceptionpublic String getName()
The name of the resource referenced in the request.
string name = 1;getName in interface ResourceInfoOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The name of the resource referenced in the request.
string name = 1;getNameBytes in interface ResourceInfoOrBuilderpublic ResourceInfo.Builder setName(String value)
The name of the resource referenced in the request.
string name = 1;value - The name to set.public ResourceInfo.Builder clearName()
The name of the resource referenced in the request.
string name = 1;public ResourceInfo.Builder setNameBytes(com.google.protobuf.ByteString value)
The name of the resource referenced in the request.
string name = 1;value - The bytes for name to set.public String getType()
The resource type in the format of "{service}/{kind}".
string type = 2;getType in interface ResourceInfoOrBuilderpublic com.google.protobuf.ByteString getTypeBytes()
The resource type in the format of "{service}/{kind}".
string type = 2;getTypeBytes in interface ResourceInfoOrBuilderpublic ResourceInfo.Builder setType(String value)
The resource type in the format of "{service}/{kind}".
string type = 2;value - The type to set.public ResourceInfo.Builder clearType()
The resource type in the format of "{service}/{kind}".
string type = 2;public ResourceInfo.Builder setTypeBytes(com.google.protobuf.ByteString value)
The resource type in the format of "{service}/{kind}".
string type = 2;value - The bytes for type to set.public String getPermission()
The resource permission needed for this request.
The format must be "{service}/{plural}.{verb}".
string permission = 3;getPermission in interface ResourceInfoOrBuilderpublic com.google.protobuf.ByteString getPermissionBytes()
The resource permission needed for this request.
The format must be "{service}/{plural}.{verb}".
string permission = 3;getPermissionBytes in interface ResourceInfoOrBuilderpublic ResourceInfo.Builder setPermission(String value)
The resource permission needed for this request.
The format must be "{service}/{plural}.{verb}".
string permission = 3;value - The permission to set.public ResourceInfo.Builder clearPermission()
The resource permission needed for this request.
The format must be "{service}/{plural}.{verb}".
string permission = 3;public ResourceInfo.Builder setPermissionBytes(com.google.protobuf.ByteString value)
The resource permission needed for this request.
The format must be "{service}/{plural}.{verb}".
string permission = 3;value - The bytes for permission to set.public String 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-id>`
- `organizations/<organization-id>`
For the policy enforcement on the container level (VPCSC and Location
Policy check), this field takes precedence on the container extracted from
name when presents.
string container = 4;getContainer in interface ResourceInfoOrBuilderpublic 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-id>`
- `organizations/<organization-id>`
For the policy enforcement on the container level (VPCSC and Location
Policy check), this field takes precedence on the container extracted from
name when presents.
string container = 4;getContainerBytes in interface ResourceInfoOrBuilderpublic ResourceInfo.Builder setContainer(String value)
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-id>`
- `organizations/<organization-id>`
For the policy enforcement on the container level (VPCSC and Location
Policy check), this field takes precedence on the container extracted from
name when presents.
string container = 4;value - The container to set.public ResourceInfo.Builder 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-id>`
- `organizations/<organization-id>`
For the policy enforcement on the container level (VPCSC and Location
Policy check), this field takes precedence on the container extracted from
name when presents.
string container = 4;public ResourceInfo.Builder setContainerBytes(com.google.protobuf.ByteString value)
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-id>`
- `organizations/<organization-id>`
For the policy enforcement on the container level (VPCSC and Location
Policy check), this field takes precedence on the container extracted from
name when presents.
string container = 4;value - The bytes for container to set.public String getLocation()
Optional. The location of the resource. The value must be a valid zone, region or multiregion. For example: "europe-west4" or "northamerica-northeast1-a"
string location = 5;getLocation in interface ResourceInfoOrBuilderpublic com.google.protobuf.ByteString getLocationBytes()
Optional. The location of the resource. The value must be a valid zone, region or multiregion. For example: "europe-west4" or "northamerica-northeast1-a"
string location = 5;getLocationBytes in interface ResourceInfoOrBuilderpublic ResourceInfo.Builder setLocation(String value)
Optional. The location of the resource. The value must be a valid zone, region or multiregion. For example: "europe-west4" or "northamerica-northeast1-a"
string location = 5;value - The location to set.public ResourceInfo.Builder clearLocation()
Optional. The location of the resource. The value must be a valid zone, region or multiregion. For example: "europe-west4" or "northamerica-northeast1-a"
string location = 5;public ResourceInfo.Builder setLocationBytes(com.google.protobuf.ByteString value)
Optional. The location of the resource. The value must be a valid zone, region or multiregion. For example: "europe-west4" or "northamerica-northeast1-a"
string location = 5;value - The bytes for location to set.public final ResourceInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>public final ResourceInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ResourceInfo.Builder>Copyright © 2024 Google LLC. All rights reserved.