Class Application.Builder (0.4.0)

public static final class Application.Builder extends GeneratedMessageV3.Builder<Application.Builder> implements ApplicationOrBuilder

Application defines the governance boundary for App Hub Entities that perform a logical end-to-end business function. App Hub supports application level IAM permission to align with governance requirements.

Protobuf type google.cloud.apphub.v1.Application

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Application build()
Returns
TypeDescription
Application

buildPartial()

public Application buildPartial()
Returns
TypeDescription
Application

clear()

public Application.Builder clear()
Returns
TypeDescription
Application.Builder
Overrides

clearAttributes()

public Application.Builder clearAttributes()

Optional. Consumer provided attributes.

.google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Application.Builder

clearCreateTime()

public Application.Builder clearCreateTime()

Output only. Create time.

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

Returns
TypeDescription
Application.Builder

clearDescription()

public Application.Builder clearDescription()

Optional. User-defined description of an Application. Can have a maximum length of 2048 characters.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Application.Builder

This builder for chaining.

clearDisplayName()

public Application.Builder clearDisplayName()

Optional. User-defined name for the Application. Can have a maximum length of 63 characters.

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

Returns
TypeDescription
Application.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Application.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Application.Builder
Overrides

clearName()

public Application.Builder clearName()

Identifier. The resource name of an Application. Format: "projects/{host-project-id}/locations/{location}/applications/{application-id}"

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

Returns
TypeDescription
Application.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearScope()

public Application.Builder clearScope()

Required. Immutable. Defines what data can be included into this Application. Limits which Services and Workloads can be registered.

.google.cloud.apphub.v1.Scope scope = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
Application.Builder

clearState()

public Application.Builder clearState()

Output only. Application state.

.google.cloud.apphub.v1.Application.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Application.Builder

This builder for chaining.

clearUid()

public Application.Builder clearUid()

Output only. A universally unique identifier (in UUID4 format) for the Application.

string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
TypeDescription
Application.Builder

This builder for chaining.

clearUpdateTime()

public Application.Builder clearUpdateTime()

Output only. Update time.

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

Returns
TypeDescription
Application.Builder

clone()

public Application.Builder clone()
Returns
TypeDescription
Application.Builder
Overrides

getAttributes()

public Attributes getAttributes()

Optional. Consumer provided attributes.

.google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Attributes

The attributes.

getAttributesBuilder()

public Attributes.Builder getAttributesBuilder()

Optional. Consumer provided attributes.

.google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Attributes.Builder

getAttributesOrBuilder()

public AttributesOrBuilder getAttributesOrBuilder()

Optional. Consumer provided attributes.

.google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AttributesOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. Create time.

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

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Create time.

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

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Create time.

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

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Application getDefaultInstanceForType()
Returns
TypeDescription
Application

getDescription()

public String getDescription()

Optional. User-defined description of an Application. Can have a maximum length of 2048 characters.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. User-defined description of an Application. Can have a maximum length of 2048 characters.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Optional. User-defined name for the Application. Can have a maximum length of 63 characters.

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

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. User-defined name for the Application. Can have a maximum length of 63 characters.

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

Returns
TypeDescription
ByteString

The bytes for displayName.

getName()

public String getName()

Identifier. The resource name of an Application. Format: "projects/{host-project-id}/locations/{location}/applications/{application-id}"

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of an Application. Format: "projects/{host-project-id}/locations/{location}/applications/{application-id}"

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

Returns
TypeDescription
ByteString

The bytes for name.

getScope()

public Scope getScope()

Required. Immutable. Defines what data can be included into this Application. Limits which Services and Workloads can be registered.

.google.cloud.apphub.v1.Scope scope = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
Scope

The scope.

getScopeBuilder()

public Scope.Builder getScopeBuilder()

Required. Immutable. Defines what data can be included into this Application. Limits which Services and Workloads can be registered.

.google.cloud.apphub.v1.Scope scope = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
Scope.Builder

getScopeOrBuilder()

public ScopeOrBuilder getScopeOrBuilder()

Required. Immutable. Defines what data can be included into this Application. Limits which Services and Workloads can be registered.

.google.cloud.apphub.v1.Scope scope = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
ScopeOrBuilder

getState()

public Application.State getState()

Output only. Application state.

.google.cloud.apphub.v1.Application.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Application.State

The state.

getStateValue()

public int getStateValue()

Output only. Application state.

.google.cloud.apphub.v1.Application.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getUid()

public String getUid()

Output only. A universally unique identifier (in UUID4 format) for the Application.

string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
TypeDescription
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. A universally unique identifier (in UUID4 format) for the Application.

string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
TypeDescription
ByteString

The bytes for uid.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Update time.

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

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Update time.

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

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Update time.

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

Returns
TypeDescription
TimestampOrBuilder

hasAttributes()

public boolean hasAttributes()

Optional. Consumer provided attributes.

.google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the attributes field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. Create time.

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

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasScope()

public boolean hasScope()

Required. Immutable. Defines what data can be included into this Application. Limits which Services and Workloads can be registered.

.google.cloud.apphub.v1.Scope scope = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
boolean

Whether the scope field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Update time.

.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

mergeAttributes(Attributes value)

public Application.Builder mergeAttributes(Attributes value)

Optional. Consumer provided attributes.

.google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueAttributes
Returns
TypeDescription
Application.Builder

mergeCreateTime(Timestamp value)

public Application.Builder mergeCreateTime(Timestamp value)

Output only. Create time.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Application.Builder

mergeFrom(Application other)

public Application.Builder mergeFrom(Application other)
Parameter
NameDescription
otherApplication
Returns
TypeDescription
Application.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeScope(Scope value)

public Application.Builder mergeScope(Scope value)

Required. Immutable. Defines what data can be included into this Application. Limits which Services and Workloads can be registered.

.google.cloud.apphub.v1.Scope scope = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueScope
Returns
TypeDescription
Application.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Application.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Application.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Application.Builder mergeUpdateTime(Timestamp value)

Output only. Update time.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Application.Builder

setAttributes(Attributes value)

public Application.Builder setAttributes(Attributes value)

Optional. Consumer provided attributes.

.google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueAttributes
Returns
TypeDescription
Application.Builder

setAttributes(Attributes.Builder builderForValue)

public Application.Builder setAttributes(Attributes.Builder builderForValue)

Optional. Consumer provided attributes.

.google.cloud.apphub.v1.Attributes attributes = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueAttributes.Builder
Returns
TypeDescription
Application.Builder

setCreateTime(Timestamp value)

public Application.Builder setCreateTime(Timestamp value)

Output only. Create time.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Application.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Application.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Create time.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Application.Builder

setDescription(String value)

public Application.Builder setDescription(String value)

Optional. User-defined description of an Application. Can have a maximum length of 2048 characters.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Application.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Application.Builder setDescriptionBytes(ByteString value)

Optional. User-defined description of an Application. Can have a maximum length of 2048 characters.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Application.Builder

This builder for chaining.

setDisplayName(String value)

public Application.Builder setDisplayName(String value)

Optional. User-defined name for the Application. Can have a maximum length of 63 characters.

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

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
Application.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Application.Builder setDisplayNameBytes(ByteString value)

Optional. User-defined name for the Application. Can have a maximum length of 63 characters.

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

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
Application.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Application.Builder setName(String value)

Identifier. The resource name of an Application. Format: "projects/{host-project-id}/locations/{location}/applications/{application-id}"

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Application.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Application.Builder setNameBytes(ByteString value)

Identifier. The resource name of an Application. Format: "projects/{host-project-id}/locations/{location}/applications/{application-id}"

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Application.Builder

This builder for chaining.

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

public Application.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Application.Builder
Overrides

setScope(Scope value)

public Application.Builder setScope(Scope value)

Required. Immutable. Defines what data can be included into this Application. Limits which Services and Workloads can be registered.

.google.cloud.apphub.v1.Scope scope = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueScope
Returns
TypeDescription
Application.Builder

setScope(Scope.Builder builderForValue)

public Application.Builder setScope(Scope.Builder builderForValue)

Required. Immutable. Defines what data can be included into this Application. Limits which Services and Workloads can be registered.

.google.cloud.apphub.v1.Scope scope = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
builderForValueScope.Builder
Returns
TypeDescription
Application.Builder

setState(Application.State value)

public Application.Builder setState(Application.State value)

Output only. Application state.

.google.cloud.apphub.v1.Application.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueApplication.State

The state to set.

Returns
TypeDescription
Application.Builder

This builder for chaining.

setStateValue(int value)

public Application.Builder setStateValue(int value)

Output only. Application state.

.google.cloud.apphub.v1.Application.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
Application.Builder

This builder for chaining.

setUid(String value)

public Application.Builder setUid(String value)

Output only. A universally unique identifier (in UUID4 format) for the Application.

string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Parameter
NameDescription
valueString

The uid to set.

Returns
TypeDescription
Application.Builder

This builder for chaining.

setUidBytes(ByteString value)

public Application.Builder setUidBytes(ByteString value)

Output only. A universally unique identifier (in UUID4 format) for the Application.

string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Parameter
NameDescription
valueByteString

The bytes for uid to set.

Returns
TypeDescription
Application.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Application.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Application.Builder
Overrides

setUpdateTime(Timestamp value)

public Application.Builder setUpdateTime(Timestamp value)

Output only. Update time.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Application.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Application.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Update time.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Application.Builder