public static final class ResourceInfo.Builder extends GeneratedMessageV3.Builder<ResourceInfo.Builder> implements ResourceInfoOrBuilderDescribes a resource referenced in the request.
Protobuf type google.api.servicecontrol.v2.ResourceInfo
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ResourceInfo.BuilderImplements
ResourceInfoOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ResourceInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Type | Description |
ResourceInfo.Builder |
build()
public ResourceInfo build()| Type | Description |
ResourceInfo |
buildPartial()
public ResourceInfo buildPartial()| Type | Description |
ResourceInfo |
clear()
public ResourceInfo.Builder clear()| Type | Description |
ResourceInfo.Builder |
clearContainer()
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;
| Type | Description |
ResourceInfo.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ResourceInfo.Builder clearField(Descriptors.FieldDescriptor field)| Name | Description |
field |
FieldDescriptor |
| Type | Description |
ResourceInfo.Builder |
clearLocation()
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;
| Type | Description |
ResourceInfo.Builder |
This builder for chaining. |
clearName()
public ResourceInfo.Builder clearName()The name of the resource referenced in the request.
string name = 1;
| Type | Description |
ResourceInfo.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ResourceInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Name | Description |
oneof |
OneofDescriptor |
| Type | Description |
ResourceInfo.Builder |
clearPermission()
public ResourceInfo.Builder clearPermission()The resource permission needed for this request. The format must be "{service}/{plural}.{verb}".
string permission = 3;
| Type | Description |
ResourceInfo.Builder |
This builder for chaining. |
clearType()
public ResourceInfo.Builder clearType()The resource type in the format of "{service}/{kind}".
string type = 2;
| Type | Description |
ResourceInfo.Builder |
This builder for chaining. |
clone()
public ResourceInfo.Builder clone()| Type | Description |
ResourceInfo.Builder |
getContainer()
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;
| Type | Description |
String |
The container. |
getContainerBytes()
public 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;
| Type | Description |
ByteString |
The bytes for container. |
getDefaultInstanceForType()
public ResourceInfo getDefaultInstanceForType()| Type | Description |
ResourceInfo |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Type | Description |
Descriptor |
getLocation()
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;
| Type | Description |
String |
The location. |
getLocationBytes()
public 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;
| Type | Description |
ByteString |
The bytes for location. |
getName()
public String getName()The name of the resource referenced in the request.
string name = 1;
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()The name of the resource referenced in the request.
string name = 1;
| Type | Description |
ByteString |
The bytes for name. |
getPermission()
public String getPermission()The resource permission needed for this request. The format must be "{service}/{plural}.{verb}".
string permission = 3;
| Type | Description |
String |
The permission. |
getPermissionBytes()
public ByteString getPermissionBytes()The resource permission needed for this request. The format must be "{service}/{plural}.{verb}".
string permission = 3;
| Type | Description |
ByteString |
The bytes for permission. |
getType()
public String getType()The resource type in the format of "{service}/{kind}".
string type = 2;
| Type | Description |
String |
The type. |
getTypeBytes()
public ByteString getTypeBytes()The resource type in the format of "{service}/{kind}".
string type = 2;
| Type | Description |
ByteString |
The bytes for type. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()| Type | Description |
boolean |
mergeFrom(ResourceInfo other)
public ResourceInfo.Builder mergeFrom(ResourceInfo other)| Name | Description |
other |
ResourceInfo |
| Type | Description |
ResourceInfo.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ResourceInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Type | Description |
ResourceInfo.Builder |
| Type | Description |
IOException |
mergeFrom(Message other)
public ResourceInfo.Builder mergeFrom(Message other)| Name | Description |
other |
Message |
| Type | Description |
ResourceInfo.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ResourceInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
unknownFields |
UnknownFieldSet |
| Type | Description |
ResourceInfo.Builder |
setContainer(String value)
public 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;
| Name | Description |
value |
StringThe container to set. |
| Type | Description |
ResourceInfo.Builder |
This builder for chaining. |
setContainerBytes(ByteString value)
public ResourceInfo.Builder setContainerBytes(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;
| Name | Description |
value |
ByteStringThe bytes for container to set. |
| Type | Description |
ResourceInfo.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ResourceInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Type | Description |
ResourceInfo.Builder |
setLocation(String value)
public 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;
| Name | Description |
value |
StringThe location to set. |
| Type | Description |
ResourceInfo.Builder |
This builder for chaining. |
setLocationBytes(ByteString value)
public ResourceInfo.Builder setLocationBytes(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;
| Name | Description |
value |
ByteStringThe bytes for location to set. |
| Type | Description |
ResourceInfo.Builder |
This builder for chaining. |
setName(String value)
public ResourceInfo.Builder setName(String value)The name of the resource referenced in the request.
string name = 1;
| Name | Description |
value |
StringThe name to set. |
| Type | Description |
ResourceInfo.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public ResourceInfo.Builder setNameBytes(ByteString value)The name of the resource referenced in the request.
string name = 1;
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Type | Description |
ResourceInfo.Builder |
This builder for chaining. |
setPermission(String value)
public ResourceInfo.Builder setPermission(String value)The resource permission needed for this request. The format must be "{service}/{plural}.{verb}".
string permission = 3;
| Name | Description |
value |
StringThe permission to set. |
| Type | Description |
ResourceInfo.Builder |
This builder for chaining. |
setPermissionBytes(ByteString value)
public ResourceInfo.Builder setPermissionBytes(ByteString value)The resource permission needed for this request. The format must be "{service}/{plural}.{verb}".
string permission = 3;
| Name | Description |
value |
ByteStringThe bytes for permission to set. |
| Type | Description |
ResourceInfo.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ResourceInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Type | Description |
ResourceInfo.Builder |
setType(String value)
public ResourceInfo.Builder setType(String value)The resource type in the format of "{service}/{kind}".
string type = 2;
| Name | Description |
value |
StringThe type to set. |
| Type | Description |
ResourceInfo.Builder |
This builder for chaining. |
setTypeBytes(ByteString value)
public ResourceInfo.Builder setTypeBytes(ByteString value)The resource type in the format of "{service}/{kind}".
string type = 2;
| Name | Description |
value |
ByteStringThe bytes for type to set. |
| Type | Description |
ResourceInfo.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ResourceInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
unknownFields |
UnknownFieldSet |
| Type | Description |
ResourceInfo.Builder |