Class ResourceName.Builder (0.14.1)

public static final class ResourceName.Builder extends GeneratedMessageV3.Builder<ResourceName.Builder> implements ResourceNameOrBuilder

Resource name and display name.

Protobuf type google.cloud.dialogflow.cx.v3beta1.ResourceName

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ResourceName build()
Returns
TypeDescription
ResourceName

buildPartial()

public ResourceName buildPartial()
Returns
TypeDescription
ResourceName

clear()

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

clearDisplayName()

public ResourceName.Builder clearDisplayName()

Display name.

string display_name = 2;

Returns
TypeDescription
ResourceName.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public ResourceName.Builder clearName()

Name.

string name = 1;

Returns
TypeDescription
ResourceName.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ResourceName getDefaultInstanceForType()
Returns
TypeDescription
ResourceName

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Display name.

string display_name = 2;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Display name.

string display_name = 2;

Returns
TypeDescription
ByteString

The bytes for displayName.

getName()

public String getName()

Name.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ResourceName other)

public ResourceName.Builder mergeFrom(ResourceName other)
Parameter
NameDescription
otherResourceName
Returns
TypeDescription
ResourceName.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDisplayName(String value)

public ResourceName.Builder setDisplayName(String value)

Display name.

string display_name = 2;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
ResourceName.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public ResourceName.Builder setDisplayNameBytes(ByteString value)

Display name.

string display_name = 2;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
ResourceName.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public ResourceName.Builder setName(String value)

Name.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ResourceName.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ResourceName.Builder setNameBytes(ByteString value)

Name.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ResourceName.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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