Class PanelInfo.Builder (0.19.0)

public static final class PanelInfo.Builder extends GeneratedMessageV3.Builder<PanelInfo.Builder> implements PanelInfoOrBuilder

Detailed panel information associated with a user event.

Protobuf type google.cloud.discoveryengine.v1beta.PanelInfo

Implements

PanelInfoOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PanelInfo build()
Returns
TypeDescription
PanelInfo

buildPartial()

public PanelInfo buildPartial()
Returns
TypeDescription
PanelInfo

clear()

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

clearDisplayName()

public PanelInfo.Builder clearDisplayName()

The display name of the panel.

string display_name = 3;

Returns
TypeDescription
PanelInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPanelId()

public PanelInfo.Builder clearPanelId()

Required. The panel ID.

string panel_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PanelInfo.Builder

This builder for chaining.

clearPanelPosition()

public PanelInfo.Builder clearPanelPosition()

The ordered position of the panel, if shown to the user with other panels. If set, then total_panels must also be set.

optional int32 panel_position = 4;

Returns
TypeDescription
PanelInfo.Builder

This builder for chaining.

clearTotalPanels()

public PanelInfo.Builder clearTotalPanels()

The total number of panels, including this one, shown to the user. Must be set if panel_position is set.

optional int32 total_panels = 5;

Returns
TypeDescription
PanelInfo.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public PanelInfo getDefaultInstanceForType()
Returns
TypeDescription
PanelInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

The display name of the panel.

string display_name = 3;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The display name of the panel.

string display_name = 3;

Returns
TypeDescription
ByteString

The bytes for displayName.

getPanelId()

public String getPanelId()

Required. The panel ID.

string panel_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The panelId.

getPanelIdBytes()

public ByteString getPanelIdBytes()

Required. The panel ID.

string panel_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for panelId.

getPanelPosition()

public int getPanelPosition()

The ordered position of the panel, if shown to the user with other panels. If set, then total_panels must also be set.

optional int32 panel_position = 4;

Returns
TypeDescription
int

The panelPosition.

getTotalPanels()

public int getTotalPanels()

The total number of panels, including this one, shown to the user. Must be set if panel_position is set.

optional int32 total_panels = 5;

Returns
TypeDescription
int

The totalPanels.

hasPanelPosition()

public boolean hasPanelPosition()

The ordered position of the panel, if shown to the user with other panels. If set, then total_panels must also be set.

optional int32 panel_position = 4;

Returns
TypeDescription
boolean

Whether the panelPosition field is set.

hasTotalPanels()

public boolean hasTotalPanels()

The total number of panels, including this one, shown to the user. Must be set if panel_position is set.

optional int32 total_panels = 5;

Returns
TypeDescription
boolean

Whether the totalPanels field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PanelInfo other)

public PanelInfo.Builder mergeFrom(PanelInfo other)
Parameter
NameDescription
otherPanelInfo
Returns
TypeDescription
PanelInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDisplayName(String value)

public PanelInfo.Builder setDisplayName(String value)

The display name of the panel.

string display_name = 3;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
PanelInfo.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public PanelInfo.Builder setDisplayNameBytes(ByteString value)

The display name of the panel.

string display_name = 3;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
PanelInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPanelId(String value)

public PanelInfo.Builder setPanelId(String value)

Required. The panel ID.

string panel_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The panelId to set.

Returns
TypeDescription
PanelInfo.Builder

This builder for chaining.

setPanelIdBytes(ByteString value)

public PanelInfo.Builder setPanelIdBytes(ByteString value)

Required. The panel ID.

string panel_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for panelId to set.

Returns
TypeDescription
PanelInfo.Builder

This builder for chaining.

setPanelPosition(int value)

public PanelInfo.Builder setPanelPosition(int value)

The ordered position of the panel, if shown to the user with other panels. If set, then total_panels must also be set.

optional int32 panel_position = 4;

Parameter
NameDescription
valueint

The panelPosition to set.

Returns
TypeDescription
PanelInfo.Builder

This builder for chaining.

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

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

setTotalPanels(int value)

public PanelInfo.Builder setTotalPanels(int value)

The total number of panels, including this one, shown to the user. Must be set if panel_position is set.

optional int32 total_panels = 5;

Parameter
NameDescription
valueint

The totalPanels to set.

Returns
TypeDescription
PanelInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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