Class Organization.Builder (0.21.0)

publicstaticfinalclass Organization.BuilderextendsGeneratedMessageV3.Builder<Organization.Builder>implementsOrganizationOrBuilder

A resource message representing a Google Marketing Platform organization.

Protobuf type google.marketingplatform.admin.v1alpha.Organization

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicOrganization.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Organization.Builder
Overrides

build()

publicOrganizationbuild()
Returns
Type Description
Organization

buildPartial()

publicOrganizationbuildPartial()
Returns
Type Description
Organization

clear()

publicOrganization.Builderclear()
Returns
Type Description
Organization.Builder
Overrides

clearDisplayName()

publicOrganization.BuilderclearDisplayName()

The human-readable name for the organization.

string display_name = 2;

Returns
Type Description
Organization.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicOrganization.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Organization.Builder
Overrides

clearName()

publicOrganization.BuilderclearName()

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.

clearOneof(Descriptors.OneofDescriptor oneof)

publicOrganization.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Organization.Builder
Overrides

clone()

publicOrganization.Builderclone()
Returns
Type Description
Organization.Builder
Overrides

getDefaultInstanceForType()

publicOrganizationgetDefaultInstanceForType()
Returns
Type Description
Organization

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

publicStringgetDisplayName()

The human-readable name for the organization.

string display_name = 2;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

publicByteStringgetDisplayNameBytes()

The human-readable name for the organization.

string display_name = 2;

Returns
Type Description
ByteString

The bytes for displayName.

getName()

publicStringgetName()

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()

publicByteStringgetNameBytes()

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()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Organization other)

publicOrganization.BuildermergeFrom(Organizationother)
Parameter
Name Description
other Organization
Returns
Type Description
Organization.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicOrganization.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Organization.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicOrganization.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Organization.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalOrganization.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Organization.Builder
Overrides

setDisplayName(String value)

publicOrganization.BuildersetDisplayName(Stringvalue)

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)

publicOrganization.BuildersetDisplayNameBytes(ByteStringvalue)

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.

setField(Descriptors.FieldDescriptor field, Object value)

publicOrganization.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Organization.Builder
Overrides

setName(String value)

publicOrganization.BuildersetName(Stringvalue)

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)

publicOrganization.BuildersetNameBytes(ByteStringvalue)

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.

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

publicOrganization.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Organization.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalOrganization.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Organization.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.