public final class ResourceInfo extends com.google.protobuf.GeneratedMessageV3 implements ResourceInfoOrBuilder
Describes a resource referenced in the request.Protobuf type
google.api.servicecontrol.v2.ResourceInfo| Modifier and Type | Class and Description |
|---|---|
static class |
ResourceInfo.Builder
Describes a resource referenced in the request.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CONTAINER_FIELD_NUMBER |
static int |
LOCATION_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
PERMISSION_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getContainer()
Optional.
|
com.google.protobuf.ByteString |
getContainerBytes()
Optional.
|
static ResourceInfo |
getDefaultInstance() |
ResourceInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.
|
com.google.protobuf.Parser<ResourceInfo> |
getParserForType() |
String |
getPermission()
The resource permission needed for this request.
|
com.google.protobuf.ByteString |
getPermissionBytes()
The resource permission needed for this request.
|
int |
getSerializedSize() |
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}".
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ResourceInfo.Builder |
newBuilder() |
static ResourceInfo.Builder |
newBuilder(ResourceInfo prototype) |
ResourceInfo.Builder |
newBuilderForType() |
protected ResourceInfo.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ResourceInfo |
parseDelimitedFrom(InputStream input) |
static ResourceInfo |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResourceInfo |
parseFrom(byte[] data) |
static ResourceInfo |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResourceInfo |
parseFrom(ByteBuffer data) |
static ResourceInfo |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResourceInfo |
parseFrom(com.google.protobuf.ByteString data) |
static ResourceInfo |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResourceInfo |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ResourceInfo |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResourceInfo |
parseFrom(InputStream input) |
static ResourceInfo |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ResourceInfo> |
parser() |
ResourceInfo.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
public static final int PERMISSION_FIELD_NUMBER
public static final int CONTAINER_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ResourceInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourceInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourceInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourceInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourceInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourceInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourceInfo parseFrom(InputStream input) throws IOException
IOExceptionpublic static ResourceInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ResourceInfo parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ResourceInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ResourceInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ResourceInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ResourceInfo.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ResourceInfo.Builder newBuilder()
public static ResourceInfo.Builder newBuilder(ResourceInfo prototype)
public ResourceInfo.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ResourceInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ResourceInfo getDefaultInstance()
public static com.google.protobuf.Parser<ResourceInfo> parser()
public com.google.protobuf.Parser<ResourceInfo> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ResourceInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.