Class Organization.Builder (1.9.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Organization.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Organization.Builder
Overrides

build()

public Organization build()
Returns
TypeDescription
Organization

buildPartial()

public Organization buildPartial()
Returns
TypeDescription
Organization

clear()

public Organization.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Organization.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Organization.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Organization.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Organization.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Organization.Builder
Overrides

clearOwner()

public Organization.Builder clearOwner()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Organization.Builder

clone()

public Organization.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Organization getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getOwnerCase()

public Organization.OwnerCase getOwnerCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
Organization.Builder

mergeFrom(Organization other)

public Organization.Builder mergeFrom(Organization other)
Parameter
NameDescription
otherOrganization
Returns
TypeDescription
Organization.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Organization.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Organization.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Organization.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Organization.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Organization.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The directoryCustomerId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for directoryCustomerId to set.

Returns
TypeDescription
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
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
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
NameDescription
valueString

The etag to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
Organization.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Organization.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueOrganization.State

The state to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
Organization.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Organization.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Organization.Builder