Class ServiceProperties.Builder (0.6.0)

public static final class ServiceProperties.Builder extends GeneratedMessageV3.Builder<ServiceProperties.Builder> implements ServicePropertiesOrBuilder

Properties of an underlying cloud resource that can comprise a Service.

Protobuf type google.cloud.apphub.v1.ServiceProperties

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ServiceProperties build()
Returns
Type Description
ServiceProperties

buildPartial()

public ServiceProperties buildPartial()
Returns
Type Description
ServiceProperties

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearGcpProject()

public ServiceProperties.Builder clearGcpProject()

Output only. The service project identifier that the underlying cloud resource resides in.

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

Returns
Type Description
ServiceProperties.Builder

This builder for chaining.

clearLocation()

public ServiceProperties.Builder clearLocation()

Output only. The location that the underlying resource resides in, for example, us-west1.

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

Returns
Type Description
ServiceProperties.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearZone()

public ServiceProperties.Builder clearZone()

Output only. The location that the underlying resource resides in if it is zonal, for example, us-west1-a).

string zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ServiceProperties.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ServiceProperties getDefaultInstanceForType()
Returns
Type Description
ServiceProperties

getDescriptorForType()

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

getGcpProject()

public String getGcpProject()

Output only. The service project identifier that the underlying cloud resource resides in.

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

Returns
Type Description
String

The gcpProject.

getGcpProjectBytes()

public ByteString getGcpProjectBytes()

Output only. The service project identifier that the underlying cloud resource resides in.

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

Returns
Type Description
ByteString

The bytes for gcpProject.

getLocation()

public String getLocation()

Output only. The location that the underlying resource resides in, for example, us-west1.

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

Returns
Type Description
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

Output only. The location that the underlying resource resides in, for example, us-west1.

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

Returns
Type Description
ByteString

The bytes for location.

getZone()

public String getZone()

Output only. The location that the underlying resource resides in if it is zonal, for example, us-west1-a).

string zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

Output only. The location that the underlying resource resides in if it is zonal, for example, us-west1-a).

string zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for zone.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ServiceProperties other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setGcpProject(String value)

public ServiceProperties.Builder setGcpProject(String value)

Output only. The service project identifier that the underlying cloud resource resides in.

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

Parameter
Name Description
value String

The gcpProject to set.

Returns
Type Description
ServiceProperties.Builder

This builder for chaining.

setGcpProjectBytes(ByteString value)

public ServiceProperties.Builder setGcpProjectBytes(ByteString value)

Output only. The service project identifier that the underlying cloud resource resides in.

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

Parameter
Name Description
value ByteString

The bytes for gcpProject to set.

Returns
Type Description
ServiceProperties.Builder

This builder for chaining.

setLocation(String value)

public ServiceProperties.Builder setLocation(String value)

Output only. The location that the underlying resource resides in, for example, us-west1.

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

Parameter
Name Description
value String

The location to set.

Returns
Type Description
ServiceProperties.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public ServiceProperties.Builder setLocationBytes(ByteString value)

Output only. The location that the underlying resource resides in, for example, us-west1.

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

Parameter
Name Description
value ByteString

The bytes for location to set.

Returns
Type Description
ServiceProperties.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setZone(String value)

public ServiceProperties.Builder setZone(String value)

Output only. The location that the underlying resource resides in if it is zonal, for example, us-west1-a).

string zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The zone to set.

Returns
Type Description
ServiceProperties.Builder

This builder for chaining.

setZoneBytes(ByteString value)

public ServiceProperties.Builder setZoneBytes(ByteString value)

Output only. The location that the underlying resource resides in if it is zonal, for example, us-west1-a).

string zone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for zone to set.

Returns
Type Description
ServiceProperties.Builder

This builder for chaining.