Class ServiceProperties.Builder (0.4.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ServiceProperties build()
Returns
TypeDescription
ServiceProperties

buildPartial()

public ServiceProperties buildPartial()
Returns
TypeDescription
ServiceProperties

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ServiceProperties.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ServiceProperties.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ServiceProperties getDefaultInstanceForType()
Returns
TypeDescription
ServiceProperties

getDescriptorForType()

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

The bytes for zone.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ServiceProperties other)

public ServiceProperties.Builder mergeFrom(ServiceProperties other)
Parameter
NameDescription
otherServiceProperties
Returns
TypeDescription
ServiceProperties.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The gcpProject to set.

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

The bytes for gcpProject to set.

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

The location to set.

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

The bytes for location to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ServiceProperties.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

The zone to set.

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

The bytes for zone to set.

Returns
TypeDescription
ServiceProperties.Builder

This builder for chaining.