Some or all of the information on this page might not apply to Trusted Cloud by S3NS.
Class CreateViewRequest.Builder (3.8.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 3.8.0keyboard_arrow_down
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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateViewRequest . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public CreateViewRequest build ()
Returns
buildPartial()
public CreateViewRequest buildPartial ()
Returns
clear()
public CreateViewRequest . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateViewRequest . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateViewRequest . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearParent()
public CreateViewRequest . Builder clearParent ()
Required. The bucket in which to create the view
"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
For example:
"projects/my-project/locations/global/buckets/my-bucket"
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
clearView()
public CreateViewRequest . Builder clearView ()
Required. The new view.
.google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
clearViewId()
public CreateViewRequest . Builder clearViewId ()
Required. The id to use for this view.
string view_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clone()
public CreateViewRequest . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public CreateViewRequest getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getParent()
public String getParent ()
Required. The bucket in which to create the view
"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
For example:
"projects/my-project/locations/global/buckets/my-bucket"
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
String
The parent.
getParentBytes()
public ByteString getParentBytes ()
Required. The bucket in which to create the view
"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
For example:
"projects/my-project/locations/global/buckets/my-bucket"
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getView()
Required. The new view.
.google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
getViewBuilder()
public LogView . Builder getViewBuilder ()
Required. The new view.
.google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
getViewId()
public String getViewId ()
Required. The id to use for this view.
string view_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
String
The viewId.
getViewIdBytes()
public ByteString getViewIdBytes ()
Required. The id to use for this view.
string view_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getViewOrBuilder()
public LogViewOrBuilder getViewOrBuilder ()
Required. The new view.
.google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
hasView()
Required. The new view.
.google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
boolean
Whether the view field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(CreateViewRequest other)
public CreateViewRequest . Builder mergeFrom ( CreateViewRequest other )
Parameter
Returns
public CreateViewRequest . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateViewRequest . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateViewRequest . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public CreateViewRequest . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setParent(String value)
public CreateViewRequest . Builder setParent ( String value )
Required. The bucket in which to create the view
"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
For example:
"projects/my-project/locations/global/buckets/my-bucket"
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
String
The parent to set.
Returns
setParentBytes(ByteString value)
public CreateViewRequest . Builder setParentBytes ( ByteString value )
Required. The bucket in which to create the view
"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
For example:
"projects/my-project/locations/global/buckets/my-bucket"
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
ByteString
The bytes for parent to set.
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateViewRequest . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateViewRequest . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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
Returns
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
Returns
setViewId(String value)
public CreateViewRequest . Builder setViewId ( String value )
Required. The id to use for this view.
string view_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
String
The viewId to set.
Returns
setViewIdBytes(ByteString value)
public CreateViewRequest . Builder setViewIdBytes ( ByteString value )
Required. The id to use for this view.
string view_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
ByteString
The bytes for viewId to set.
Returns
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-09 UTC."],[],[]]