Class CreateViewRequest.Builder (3.16.2)

public static final class CreateViewRequest.Builder extends GeneratedMessageV3.Builder<CreateViewRequest.Builder> implements CreateViewRequestOrBuilder

The parameters to CreateView.

Protobuf type google.logging.v2.CreateViewRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateViewRequest build()
Returns
TypeDescription
CreateViewRequest

buildPartial()

public CreateViewRequest buildPartial()
Returns
TypeDescription
CreateViewRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateViewRequest.Builder clearParent()

Required. The bucket in which to create the view

 <code>"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"</code>

For example:

"projects/my-project/locations/global/buckets/my-bucket"

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateViewRequest.Builder

This builder for chaining.

clearView()

public CreateViewRequest.Builder clearView()

Required. The new view.

.google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateViewRequest.Builder

clearViewId()

public CreateViewRequest.Builder clearViewId()

Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.

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

Returns
TypeDescription
CreateViewRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateViewRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateViewRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. The bucket in which to create the view

 <code>"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"</code>

For example:

"projects/my-project/locations/global/buckets/my-bucket"

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The bucket in which to create the view

 <code>"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"</code>

For example:

"projects/my-project/locations/global/buckets/my-bucket"

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for parent.

getView()

public LogView getView()

Required. The new view.

.google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
LogView

The view.

getViewBuilder()

public LogView.Builder getViewBuilder()

Required. The new view.

.google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
LogView.Builder

getViewId()

public String getViewId()

Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.

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

Returns
TypeDescription
String

The viewId.

getViewIdBytes()

public ByteString getViewIdBytes()

Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.

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

Returns
TypeDescription
ByteString

The bytes for viewId.

getViewOrBuilder()

public LogViewOrBuilder getViewOrBuilder()

Required. The new view.

.google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
LogViewOrBuilder

hasView()

public boolean hasView()

Required. The new view.

.google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the view field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateViewRequest other)

public CreateViewRequest.Builder mergeFrom(CreateViewRequest other)
Parameter
NameDescription
otherCreateViewRequest
Returns
TypeDescription
CreateViewRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeView(LogView value)

public CreateViewRequest.Builder mergeView(LogView value)

Required. The new view.

.google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueLogView
Returns
TypeDescription
CreateViewRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateViewRequest.Builder setParent(String value)

Required. The bucket in which to create the view

 <code>"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"</code>

For example:

"projects/my-project/locations/global/buckets/my-bucket"

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateViewRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateViewRequest.Builder setParentBytes(ByteString value)

Required. The bucket in which to create the view

 <code>"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"</code>

For example:

"projects/my-project/locations/global/buckets/my-bucket"

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateViewRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setView(LogView value)

public CreateViewRequest.Builder setView(LogView value)

Required. The new view.

.google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueLogView
Returns
TypeDescription
CreateViewRequest.Builder

setView(LogView.Builder builderForValue)

public CreateViewRequest.Builder setView(LogView.Builder builderForValue)

Required. The new view.

.google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueLogView.Builder
Returns
TypeDescription
CreateViewRequest.Builder

setViewId(String value)

public CreateViewRequest.Builder setViewId(String value)

Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.

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

Parameter
NameDescription
valueString

The viewId to set.

Returns
TypeDescription
CreateViewRequest.Builder

This builder for chaining.

setViewIdBytes(ByteString value)

public CreateViewRequest.Builder setViewIdBytes(ByteString value)

Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.

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

Parameter
NameDescription
valueByteString

The bytes for viewId to set.

Returns
TypeDescription
CreateViewRequest.Builder

This builder for chaining.