public static final class Identity.Builder extends GeneratedMessage.Builder<Identity.Builder> implements IdentityOrBuilderIdentity lets the user provide the type of identity to use, and outputs the identity string that can be used for IAM policy changes.
Protobuf type google.cloud.storageinsights.v1.Identity
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Identity.BuilderImplements
IdentityOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Identity build()| Returns | |
|---|---|
| Type | Description |
Identity |
|
buildPartial()
public Identity buildPartial()| Returns | |
|---|---|
| Type | Description |
Identity |
|
clear()
public Identity.Builder clear()| Returns | |
|---|---|
| Type | Description |
Identity.Builder |
|
clearName()
public Identity.Builder clearName()Output only. Name of the identity.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Identity.Builder |
This builder for chaining. |
clearType()
public Identity.Builder clearType()Type of identity to use for the datasetConfig.
.google.cloud.storageinsights.v1.Identity.IdentityType type = 2;
| Returns | |
|---|---|
| Type | Description |
Identity.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Identity getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Identity |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName()Output only. Name of the identity.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Output only. Name of the identity.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getType()
public Identity.IdentityType getType()Type of identity to use for the datasetConfig.
.google.cloud.storageinsights.v1.Identity.IdentityType type = 2;
| Returns | |
|---|---|
| Type | Description |
Identity.IdentityType |
The type. |
getTypeValue()
public int getTypeValue()Type of identity to use for the datasetConfig.
.google.cloud.storageinsights.v1.Identity.IdentityType type = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for type. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Identity other)
public Identity.Builder mergeFrom(Identity other)| Parameter | |
|---|---|
| Name | Description |
other |
Identity |
| Returns | |
|---|---|
| Type | Description |
Identity.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Identity.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Identity.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Identity.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Identity.Builder |
|
setName(String value)
public Identity.Builder setName(String value)Output only. Name of the identity.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Identity.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Identity.Builder setNameBytes(ByteString value)Output only. Name of the identity.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Identity.Builder |
This builder for chaining. |
setType(Identity.IdentityType value)
public Identity.Builder setType(Identity.IdentityType value)Type of identity to use for the datasetConfig.
.google.cloud.storageinsights.v1.Identity.IdentityType type = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
Identity.IdentityTypeThe type to set. |
| Returns | |
|---|---|
| Type | Description |
Identity.Builder |
This builder for chaining. |
setTypeValue(int value)
public Identity.Builder setTypeValue(int value)Type of identity to use for the datasetConfig.
.google.cloud.storageinsights.v1.Identity.IdentityType type = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for type to set. |
| Returns | |
|---|---|
| Type | Description |
Identity.Builder |
This builder for chaining. |