Class Organization.Builder (1.51.0)

public static final class Organization.Builder extends GeneratedMessageV3.Builder<Organization.Builder> implements OrganizationOrBuilder

The root node in the resource hierarchy to which a particular entity's (a company, for example) resources belong.

Protobuf type google.cloud.resourcemanager.v3.Organization

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Organization.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Organization.Builder
Overrides

build()

public Organization build()
Returns
Type Description
Organization

buildPartial()

public Organization buildPartial()
Returns
Type Description
Organization

clear()

public Organization.Builder clear()
Returns
Type Description
Organization.Builder
Overrides

clearCreateTime()

public Organization.Builder clearCreateTime()

Output only. Timestamp when the Organization was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Organization.Builder

clearDeleteTime()

public Organization.Builder clearDeleteTime()

Output only. Timestamp when the Organization was requested for deletion.

.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Organization.Builder

clearDirectoryCustomerId()

public Organization.Builder clearDirectoryCustomerId()

Immutable. The G Suite / Workspace customer id used in the Directory API.

string directory_customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
Organization.Builder

This builder for chaining.

clearDisplayName()

public Organization.Builder clearDisplayName()

Output only. A human-readable string that refers to the organization in the Google Cloud Console. This string is set by the server and cannot be changed. The string will be set to the primary domain (for example, "google.com") of the Google Workspace customer that owns the organization.

string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Organization.Builder

This builder for chaining.

clearEtag()

public Organization.Builder clearEtag()

Output only. A checksum computed by the server based on the current value of the Organization resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Organization.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Organization.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Organization.Builder
Overrides

clearName()

public Organization.Builder clearName()

Output only. The resource name of the organization. This is the organization's relative path in the API. Its format is "organizations/[organization_id]". For example, "organizations/1234".

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Organization.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Organization.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Organization.Builder
Overrides

clearOwner()

public Organization.Builder clearOwner()
Returns
Type Description
Organization.Builder

clearState()

public Organization.Builder clearState()

Output only. The organization's current lifecycle state.

.google.cloud.resourcemanager.v3.Organization.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Organization.Builder

This builder for chaining.

clearUpdateTime()

public Organization.Builder clearUpdateTime()

Output only. Timestamp when the Organization was last modified.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Organization.Builder

clone()

public Organization.Builder clone()
Returns
Type Description
Organization.Builder
Overrides

getCreateTime()

public Timestamp getCreateTime()

Output only. Timestamp when the Organization was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Timestamp when the Organization was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Timestamp when the Organization was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Organization getDefaultInstanceForType()
Returns
Type Description
Organization

getDeleteTime()

public Timestamp getDeleteTime()

Output only. Timestamp when the Organization was requested for deletion.

.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The deleteTime.

getDeleteTimeBuilder()

public Timestamp.Builder getDeleteTimeBuilder()

Output only. Timestamp when the Organization was requested for deletion.

.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getDeleteTimeOrBuilder()

public TimestampOrBuilder getDeleteTimeOrBuilder()

Output only. Timestamp when the Organization was requested for deletion.

.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDirectoryCustomerId()

public String getDirectoryCustomerId()

Immutable. The G Suite / Workspace customer id used in the Directory API.

string directory_customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The directoryCustomerId.

getDirectoryCustomerIdBytes()

public ByteString getDirectoryCustomerIdBytes()

Immutable. The G Suite / Workspace customer id used in the Directory API.

string directory_customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for directoryCustomerId.

getDisplayName()

public String getDisplayName()

Output only. A human-readable string that refers to the organization in the Google Cloud Console. This string is set by the server and cannot be changed. The string will be set to the primary domain (for example, "google.com") of the Google Workspace customer that owns the organization.

string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Output only. A human-readable string that refers to the organization in the Google Cloud Console. This string is set by the server and cannot be changed. The string will be set to the primary domain (for example, "google.com") of the Google Workspace customer that owns the organization.

string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for displayName.

getEtag()

public String getEtag()

Output only. A checksum computed by the server based on the current value of the Organization resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Output only. A checksum computed by the server based on the current value of the Organization resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for etag.

getName()

public String getName()

Output only. The resource name of the organization. This is the organization's relative path in the API. Its format is "organizations/[organization_id]". For example, "organizations/1234".

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name of the organization. This is the organization's relative path in the API. Its format is "organizations/[organization_id]". For example, "organizations/1234".

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getOwnerCase()

public Organization.OwnerCase getOwnerCase()
Returns
Type Description
Organization.OwnerCase

getState()

public Organization.State getState()

Output only. The organization's current lifecycle state.

.google.cloud.resourcemanager.v3.Organization.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Organization.State

The state.

getStateValue()

public int getStateValue()

Output only. The organization's current lifecycle state.

.google.cloud.resourcemanager.v3.Organization.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Timestamp when the Organization was last modified.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Timestamp when the Organization was last modified.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Timestamp when the Organization was last modified.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Timestamp when the Organization was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasDeleteTime()

public boolean hasDeleteTime()

Output only. Timestamp when the Organization was requested for deletion.

.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the deleteTime field is set.

hasDirectoryCustomerId()

public boolean hasDirectoryCustomerId()

Immutable. The G Suite / Workspace customer id used in the Directory API.

string directory_customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

Whether the directoryCustomerId field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Timestamp when the Organization was last modified.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Organization.Builder mergeCreateTime(Timestamp value)

Output only. Timestamp when the Organization was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Organization.Builder

mergeDeleteTime(Timestamp value)

public Organization.Builder mergeDeleteTime(Timestamp value)

Output only. Timestamp when the Organization was requested for deletion.

.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Organization.Builder

mergeFrom(Organization other)

public Organization.Builder mergeFrom(Organization other)
Parameter
Name Description
other Organization
Returns
Type Description
Organization.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Organization.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Organization.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Organization.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Organization.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Organization.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Organization.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Organization.Builder mergeUpdateTime(Timestamp value)

Output only. Timestamp when the Organization was last modified.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Organization.Builder

setCreateTime(Timestamp value)

public Organization.Builder setCreateTime(Timestamp value)

Output only. Timestamp when the Organization was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Organization.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Organization.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Timestamp when the Organization was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Organization.Builder

setDeleteTime(Timestamp value)

public Organization.Builder setDeleteTime(Timestamp value)

Output only. Timestamp when the Organization was requested for deletion.

.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Organization.Builder

setDeleteTime(Timestamp.Builder builderForValue)

public Organization.Builder setDeleteTime(Timestamp.Builder builderForValue)

Output only. Timestamp when the Organization was requested for deletion.

.google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Organization.Builder

setDirectoryCustomerId(String value)

public Organization.Builder setDirectoryCustomerId(String value)

Immutable. The G Suite / Workspace customer id used in the Directory API.

string directory_customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The directoryCustomerId to set.

Returns
Type Description
Organization.Builder

This builder for chaining.

setDirectoryCustomerIdBytes(ByteString value)

public Organization.Builder setDirectoryCustomerIdBytes(ByteString value)

Immutable. The G Suite / Workspace customer id used in the Directory API.

string directory_customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for directoryCustomerId to set.

Returns
Type Description
Organization.Builder

This builder for chaining.

setDisplayName(String value)

public Organization.Builder setDisplayName(String value)

Output only. A human-readable string that refers to the organization in the Google Cloud Console. This string is set by the server and cannot be changed. The string will be set to the primary domain (for example, "google.com") of the Google Workspace customer that owns the organization.

string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Organization.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Organization.Builder setDisplayNameBytes(ByteString value)

Output only. A human-readable string that refers to the organization in the Google Cloud Console. This string is set by the server and cannot be changed. The string will be set to the primary domain (for example, "google.com") of the Google Workspace customer that owns the organization.

string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Organization.Builder

This builder for chaining.

setEtag(String value)

public Organization.Builder setEtag(String value)

Output only. A checksum computed by the server based on the current value of the Organization resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The etag to set.

Returns
Type Description
Organization.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public Organization.Builder setEtagBytes(ByteString value)

Output only. A checksum computed by the server based on the current value of the Organization resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for etag to set.

Returns
Type Description
Organization.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Organization.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Organization.Builder
Overrides

setName(String value)

public Organization.Builder setName(String value)

Output only. The resource name of the organization. This is the organization's relative path in the API. Its format is "organizations/[organization_id]". For example, "organizations/1234".

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Organization.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Organization.Builder setNameBytes(ByteString value)

Output only. The resource name of the organization. This is the organization's relative path in the API. Its format is "organizations/[organization_id]". For example, "organizations/1234".

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Organization.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Organization.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Organization.Builder
Overrides

setState(Organization.State value)

public Organization.Builder setState(Organization.State value)

Output only. The organization's current lifecycle state.

.google.cloud.resourcemanager.v3.Organization.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Organization.State

The state to set.

Returns
Type Description
Organization.Builder

This builder for chaining.

setStateValue(int value)

public Organization.Builder setStateValue(int value)

Output only. The organization's current lifecycle state.

.google.cloud.resourcemanager.v3.Organization.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
Organization.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Organization.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Organization.Builder
Overrides

setUpdateTime(Timestamp value)

public Organization.Builder setUpdateTime(Timestamp value)

Output only. Timestamp when the Organization was last modified.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Organization.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Organization.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Timestamp when the Organization was last modified.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Organization.Builder