Class Path.Builder (0.36.0)

public static final class Path.Builder extends GeneratedMessage.Builder<Path.Builder> implements PathOrBuilder

The path details derived from the spec.

Protobuf type google.cloud.apihub.v1.Path

Implements

PathOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public Path build()
Returns
Type Description
Path

buildPartial()

public Path buildPartial()
Returns
Type Description
Path

clear()

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

clearDescription()

public Path.Builder clearDescription()

Optional. A short description for the path applicable to all operations.

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

Returns
Type Description
Path.Builder

This builder for chaining.

clearPath()

public Path.Builder clearPath()

Optional. Complete path relative to server endpoint. Note: Even though this field is optional, it is required for CreateApiOperation API and we will fail the request if not provided.

string path = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Path.Builder

This builder for chaining.

getDefaultInstanceForType()

public Path getDefaultInstanceForType()
Returns
Type Description
Path

getDescription()

public String getDescription()

Optional. A short description for the path applicable to all operations.

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

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. A short description for the path applicable to all operations.

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

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getPath()

public String getPath()

Optional. Complete path relative to server endpoint. Note: Even though this field is optional, it is required for CreateApiOperation API and we will fail the request if not provided.

string path = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The path.

getPathBytes()

public ByteString getPathBytes()

Optional. Complete path relative to server endpoint. Note: Even though this field is optional, it is required for CreateApiOperation API and we will fail the request if not provided.

string path = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for path.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Path other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDescription(String value)

public Path.Builder setDescription(String value)

Optional. A short description for the path applicable to all operations.

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

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Path.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Path.Builder setDescriptionBytes(ByteString value)

Optional. A short description for the path applicable to all operations.

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

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Path.Builder

This builder for chaining.

setPath(String value)

public Path.Builder setPath(String value)

Optional. Complete path relative to server endpoint. Note: Even though this field is optional, it is required for CreateApiOperation API and we will fail the request if not provided.

string path = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The path to set.

Returns
Type Description
Path.Builder

This builder for chaining.

setPathBytes(ByteString value)

public Path.Builder setPathBytes(ByteString value)

Optional. Complete path relative to server endpoint. Note: Even though this field is optional, it is required for CreateApiOperation API and we will fail the request if not provided.

string path = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for path to set.

Returns
Type Description
Path.Builder

This builder for chaining.