Class Organization.Builder (0.34.0)

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

A resource message representing a Google Marketing Platform organization.

Protobuf type google.marketingplatform.admin.v1alpha.Organization

Static Methods

getDescriptor()

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

Methods

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

clearDisplayName()

public Organization.Builder clearDisplayName()

The human-readable name for the organization.

string display_name = 2;

Returns
Type Description
Organization.Builder

This builder for chaining.

clearName()

public Organization.Builder clearName()

Identifier. The resource name of the GMP organization. Format: organizations/{org_id}

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

Returns
Type Description
Organization.Builder

This builder for chaining.

getDefaultInstanceForType()

public Organization getDefaultInstanceForType()
Returns
Type Description
Organization

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

The human-readable name for the organization.

string display_name = 2;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The human-readable name for the organization.

string display_name = 2;

Returns
Type Description
ByteString

The bytes for displayName.

getName()

public String getName()

Identifier. The resource name of the GMP organization. Format: organizations/{org_id}

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the GMP organization. Format: organizations/{org_id}

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

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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

setDisplayName(String value)

public Organization.Builder setDisplayName(String value)

The human-readable name for the organization.

string display_name = 2;

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)

The human-readable name for the organization.

string display_name = 2;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Organization.Builder

This builder for chaining.

setName(String value)

public Organization.Builder setName(String value)

Identifier. The resource name of the GMP organization. Format: organizations/{org_id}

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

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)

Identifier. The resource name of the GMP organization. Format: organizations/{org_id}

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Organization.Builder

This builder for chaining.